Replace letters by foo, bar and buz in lexing example (#1870)

This commit is contained in:
Arthur Milchior 2024-01-29 20:53:07 +01:00 committed by GitHub
parent 23f15463d9
commit 48fc9c1f27
1 changed files with 2 additions and 2 deletions

View File

@ -5,8 +5,8 @@ characters) and turn it into something the compiler can work with more
conveniently than strings. This happens in two stages: Lexing and Parsing. conveniently than strings. This happens in two stages: Lexing and Parsing.
Lexing takes strings and turns them into streams of [tokens]. For example, Lexing takes strings and turns them into streams of [tokens]. For example,
`a.b + c` would be turned into the tokens `a`, `.`, `b`, `+`, and `c`. `foo.bar + buz` would be turned into the tokens `foo`, `.`,
The lexer lives in [`rustc_lexer`][lexer]. `bar`, `+`, and `buz`. The lexer lives in [`rustc_lexer`][lexer].
[tokens]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_ast/token/index.html [tokens]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_ast/token/index.html
[lexer]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lexer/index.html [lexer]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lexer/index.html