Skip to content

Commit 9745199

Browse files
committed
fixed whitespace issues
1 parent 9a39994 commit 9745199

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/doc/book/src/procedural-macros.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@ Ok so now, let's compile `hello-world`. Executing `cargo run` now yields:
209209
Hello, World! My name is FrenchToast
210210
Hello, World! My name is Waffles
211211
```
212+
212213
## Custom Attributes
214+
213215
In some cases it might make sense to allow users some kind of configuration.
214216
For our example the user might want to overwrite the name that is printed in the `hello_world()` method.
215217

@@ -240,8 +242,8 @@ pub fn hello_world(input: TokenStream) -> TokenStream
240242
241243
Multiple attributes can be specified that way.
242244
243-
244245
## Raising Errors
246+
245247
Let's assume that we do not want to accept `Enums` as input to our custom derive method.
246248
247249
This condition can be easily checked with the help of `syn`.

0 commit comments

Comments
 (0)