From 04892c1a6fc145602ac7367945fda9d4ee83c9fb Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Mon, 29 Aug 2022 21:22:34 +0900 Subject: [PATCH] Fix the link to `Parser` struct Signed-off-by: Yuki Okushi --- src/the-parser.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/the-parser.md b/src/the-parser.md index cd8284ff2f75a..0d37704e84bf5 100644 --- a/src/the-parser.md +++ b/src/the-parser.md @@ -35,7 +35,7 @@ The main entrypoint to the parser is via the various `parse_*` functions and oth the token stream, and then execute the parser to get a `Crate` (the root AST node). -To minimise the amount of copying that is done, +To minimize the amount of copying that is done, both [`StringReader`] and [`Parser`] have lifetimes which bind them to the parent `ParseSess`. This contains all the information needed while parsing, as well as the [`SourceMap`] itself. @@ -65,7 +65,7 @@ Code for lexical analysis is split between two crates: [rustc_parse]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_parse/index.html [parser_lib]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_parse/index.html [parser]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_parse/parser/index.html -[`Parser`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_ast/parse/parser/struct.Parser.html +[`Parser`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_parse/parser/struct.Parser.html [`StringReader`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_parse/lexer/struct.StringReader.html [visit module]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_ast/visit/index.html [sourcefile]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_span/struct.SourceFile.html