Skip to content

Commit

Permalink
Fix typo in path parser name
Browse files Browse the repository at this point in the history
  • Loading branch information
davesque committed Dec 22, 2019
1 parent 6e9172f commit c770f51
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 c770f51

Please sign in to comment.