mirror of https://github.com/rust-lang/book
Fix misindent and comment text spacing on Procedural Macros page
This commit is contained in:
parent
5c732161df
commit
cd6fa02abe
|
@ -267,8 +267,8 @@ fn impl_hello_world(ast: &syn::DeriveInput) -> quote::Tokens {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
//Nope. This is an Enum. We cannot handle these!
|
||||
panic!("#[derive(HelloWorld)] is only defined for structs, not for enums!");
|
||||
// Nope. This is an Enum. We cannot handle these!
|
||||
panic!("#[derive(HelloWorld)] is only defined for structs, not for enums!");
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue