summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorArthur Milchior <arthur@milchior.fr>2024-01-29 20:53:07 +0100
committerGitHub <noreply@github.com>2024-01-30 04:53:07 +0900
commitd48aaf8bf4a35272b52e1ba46de34bdc86389fde (patch)
tree1b106efcfa7ebd592ad98215bbd4942c7865fc28 /src/doc/rustc-dev-guide
parent4c8f9d37a0caf077f0da5ce1b9b7a185c6c49480 (diff)
downloadrust-d48aaf8bf4a35272b52e1ba46de34bdc86389fde.tar.gz
rust-d48aaf8bf4a35272b52e1ba46de34bdc86389fde.zip
Replace letters by foo, bar and buz in lexing example (#1870)
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/the-parser.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rustc-dev-guide/src/the-parser.md b/src/doc/rustc-dev-guide/src/the-parser.md
index f0436350aa0..0c68a82c437 100644
--- a/src/doc/rustc-dev-guide/src/the-parser.md
+++ b/src/doc/rustc-dev-guide/src/the-parser.md
@@ -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.
 
 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`.
-The lexer lives in [`rustc_lexer`][lexer].
+`foo.bar + buz` would be turned into the tokens `foo`, `.`,
+`bar`, `+`, and `buz`.  The lexer lives in [`rustc_lexer`][lexer].
 
 [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