Skip to content

Commit bc47abf

Browse files
committed
Fix doc comment
1 parent 03a3010 commit bc47abf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

macros/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,9 @@ pub fn derive_variant_discriminant(input: TokenStream) -> TokenStream {
396396
/// then you can do so by use of an `#[enumcapsulate(exclude(…))]` attribute
397397
/// on the enum itself, such as if you wanted to exclude `From` and `TryInto`:
398398
///
399-
/// ```rust
399+
/// ```ignore
400+
/// use enumcapsulate::Encapsulate;
401+
///
400402
/// #[derive(Encapsulate)]
401403
/// #[enumcapsulate(exclude(From, TryInto))]
402404
/// enum Enum {

0 commit comments

Comments
 (0)