Skip to content

Commit

Permalink
Rollup merge of rust-lang#67508 - davesque:master, r=Dylan-DPC
Browse files Browse the repository at this point in the history
Fix typo in path parser name

It appears that a little typo crept into the name of a path parsing method.
  • Loading branch information
Centril authored Dec 22, 2019
2 parents 7fd41b5 + c770f51 commit 63d480a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_parse/parser/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ impl<'a> Parser<'a> {
let args = if self.eat_lt() {
// `<'a, T, A = U>`
let (args, constraints) =
self.parse_generic_args_with_leaning_angle_bracket_recovery(style, lo)?;
self.parse_generic_args_with_leading_angle_bracket_recovery(style, lo)?;
self.expect_gt()?;
let span = lo.to(self.prev_span);
AngleBracketedArgs { args, constraints, span }.into()
Expand Down Expand Up @@ -212,7 +212,7 @@ impl<'a> Parser<'a> {
/// bar::<<<<T as Foo>::Output>();
/// ^^ help: remove extra angle brackets
/// ```
fn parse_generic_args_with_leaning_angle_bracket_recovery(
fn parse_generic_args_with_leading_angle_bracket_recovery(
&mut self,
style: PathStyle,
lo: Span,
Expand Down

0 comments on commit 63d480a

Please sign in to comment.