Skip to content

Commit

Permalink
Rollup merge of #76563 - yokodake:patch-1, r=jonas-schievink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tmandry authored Sep 10, 2020
2 parents ac85a4d + 8b05998 commit ae46b9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_parse/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit ae46b9e

Please sign in to comment.