Skip to content

Commit 48fc9c1

Browse files
Replace letters by foo, bar and buz in lexing example (rust-lang#1870)
1 parent 23f1546 commit 48fc9c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/the-parser.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ characters) and turn it into something the compiler can work with more
55
conveniently than strings. This happens in two stages: Lexing and Parsing.
66

77
Lexing takes strings and turns them into streams of [tokens]. For example,
8-
`a.b + c` would be turned into the tokens `a`, `.`, `b`, `+`, and `c`.
9-
The lexer lives in [`rustc_lexer`][lexer].
8+
`foo.bar + buz` would be turned into the tokens `foo`, `.`,
9+
`bar`, `+`, and `buz`. The lexer lives in [`rustc_lexer`][lexer].
1010

1111
[tokens]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_ast/token/index.html
1212
[lexer]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lexer/index.html

0 commit comments

Comments
 (0)