diff options
| author | Tyler Mandry <tmandry@gmail.com> | 2020-09-10 12:20:09 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-10 12:20:09 -0700 |
| commit | ae46b9e483774ffcc0662e0775b6ee1e856f0e44 (patch) | |
| tree | 8839096a3cefd0d5bdaec8bb47a3f7194a076309 | |
| parent | ac85a4d71eaf73ad0b729dbdbbf3623695c2dd6f (diff) | |
| parent | 8b059980d71765270b637b2fce7f13f728ca24b4 (diff) | |
| download | rust-ae46b9e483774ffcc0662e0775b6ee1e856f0e44.tar.gz rust-ae46b9e483774ffcc0662e0775b6ee1e856f0e44.zip | |
Rollup merge of #76563 - yokodake:patch-1, r=jonas-schievink
small typo fix in rustc_parse docs small typo in rustc_parse::new_parser_from_file's documentation I'm not sure a PR is the way to do this though.
| -rw-r--r-- | compiler/rustc_parse/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/lib.rs b/compiler/rustc_parse/src/lib.rs index e7fd74f551a..12afc48356c 100644 --- a/compiler/rustc_parse/src/lib.rs +++ b/compiler/rustc_parse/src/lib.rs @@ -109,7 +109,7 @@ pub fn maybe_new_parser_from_source_str( } /// Creates a new parser, handling errors as appropriate if the file doesn't exist. -/// If a span is given, that is used on an error as the as the source of the problem. +/// If a span is given, that is used on an error as the source of the problem. pub fn new_parser_from_file<'a>(sess: &'a ParseSess, path: &Path, sp: Option<Span>) -> Parser<'a> { source_file_to_parser(sess, file_to_source_file(sess, path, sp)) } |
