Skip to content

Commit

Permalink
[fix] hyperledger-iroha#2623: fix doctest for VariantCount (hyperledg…
Browse files Browse the repository at this point in the history
…er-iroha#2631)

Signed-off-by: Artemii Gerasimovich <[email protected]>
  • Loading branch information
QuentinI authored Aug 17, 2022
1 parent a2b373d commit 4746454
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions macro/derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,13 +215,15 @@ fn impl_from_variant(ast: &syn::DeriveInput) -> TokenStream {
/// [`VariantCount`] derives an associated constant `VARIANT_COUNT: usize` for enums
/// that is equal to the count of variants in enum. E.g.
/// ```
/// use iroha_derive::VariantCount;
///
/// #[derive(VariantCount)]
/// enum MyEnum {
/// First,
/// Second(i32),
/// Third {
/// some: str,
/// stuff: usize
/// a: usize,
/// b: usize
/// }
/// }
///
Expand Down

0 comments on commit 4746454

Please sign in to comment.