diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2017-02-24 13:23:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-24 13:23:01 +0100 |
| commit | f26bbb351051b17fd2d32f19fb4964415fe1d07b (patch) | |
| tree | 094ecd6ceb08509a1a2726372b7dbd1c1dfcefdd | |
| parent | 802a502ebd081a7c55cccf1dd34a127188d79323 (diff) | |
| parent | 7c52cadfc38671147f8d9dba577c086a1cdba0ec (diff) | |
| download | rust-f26bbb351051b17fd2d32f19fb4964415fe1d07b.tar.gz rust-f26bbb351051b17fd2d32f19fb4964415fe1d07b.zip | |
Rollup merge of #40071 - tomwhoiscontrary:pr-lets-apostrophes, r=GuillaumeGomez
Correct another typo in procedural macros chapter of the Book. Another (and the only remaining) instance of the lets/let's mistake fixed in c8292fc / 36b00cf. r? @steveklabnik
| -rw-r--r-- | src/doc/book/src/procedural-macros.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/book/src/procedural-macros.md b/src/doc/book/src/procedural-macros.md index 2f53e9f1bdf..4f5a6a7c033 100644 --- a/src/doc/book/src/procedural-macros.md +++ b/src/doc/book/src/procedural-macros.md @@ -170,7 +170,7 @@ a representation of our type (which can be either a `struct` or an `enum`). Check out the [docs](https://docs.rs/syn/0.10.5/syn/struct.MacroInput.html), there is some useful information there. We are able to get the name of the type using `ast.ident`. The `quote!` macro lets us write up the Rust code -that we wish to return and convert it into `Tokens`. `quote!` let's us use some +that we wish to return and convert it into `Tokens`. `quote!` lets us use some really cool templating mechanics; we simply write `#name` and `quote!` will replace it with the variable named `name`. You can even do some repetition similar to regular macros work. You should check out the |
