Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 04892c1

Browse files
JohnTitortshepang
authored andcommittedAug 29, 2022
Fix the link to Parser struct
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
1 parent c0c957c commit 04892c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/the-parser.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The main entrypoint to the parser is via the various `parse_*` functions and oth
3535
the token stream, and then execute the parser to get a `Crate` (the root AST
3636
node).
3737

38-
To minimise the amount of copying that is done,
38+
To minimize the amount of copying that is done,
3939
both [`StringReader`] and [`Parser`] have lifetimes which bind them to the parent `ParseSess`.
4040
This contains all the information needed while parsing,
4141
as well as the [`SourceMap`] itself.
@@ -65,7 +65,7 @@ Code for lexical analysis is split between two crates:
6565
[rustc_parse]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_parse/index.html
6666
[parser_lib]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_parse/index.html
6767
[parser]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_parse/parser/index.html
68-
[`Parser`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_ast/parse/parser/struct.Parser.html
68+
[`Parser`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_parse/parser/struct.Parser.html
6969
[`StringReader`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_parse/lexer/struct.StringReader.html
7070
[visit module]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_ast/visit/index.html
7171
[sourcefile]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_span/struct.SourceFile.html

0 commit comments

Comments
 (0)
Failed to load comments.