Skip to content

Commit 36b00cf

Browse files
authored
Correct a typo in procedural macros chapter of the Book. (fixup [c8292fc])
1 parent c8292fc commit 36b00cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ So this is where quotes comes in. The `ast` argument is a struct that gives us
169169
a representation of our type (which can be either a `struct` or an `enum`).
170170
Check out the [docs](https://docs.rs/syn/0.10.5/syn/struct.MacroInput.html),
171171
there is some useful information there. We are able to get the name of the
172-
type using `ast.ident`. The `quote!` macro let us write up the Rust code
172+
type using `ast.ident`. The `quote!` macro lets us write up the Rust code
173173
that we wish to return and convert it into `Tokens`. `quote!` let's us use some
174174
really cool templating mechanics; we simply write `#name` and `quote!` will
175175
replace it with the variable named `name`. You can even do some repetition

0 commit comments

Comments
 (0)