diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-22 19:46:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-22 19:46:15 +0100 |
| commit | 63d480a07fd447303321d77a285e1024a1276d43 (patch) | |
| tree | 17edd046bbd060a9f6c0dd8ec04d48216bb4c876 /src/librustc_parse/parser | |
| parent | 7fd41b5a73022eb933defc774287cea5857b352f (diff) | |
| parent | c770f5114c2227109d658f41b737ffd4181c7de1 (diff) | |
| download | rust-63d480a07fd447303321d77a285e1024a1276d43.tar.gz rust-63d480a07fd447303321d77a285e1024a1276d43.zip | |
Rollup merge of #67508 - davesque:master, r=Dylan-DPC
Fix typo in path parser name It appears that a little typo crept into the name of a path parsing method.
Diffstat (limited to 'src/librustc_parse/parser')
| -rw-r--r-- | src/librustc_parse/parser/path.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_parse/parser/path.rs b/src/librustc_parse/parser/path.rs index 802d38e2997..a768fdc779e 100644 --- a/src/librustc_parse/parser/path.rs +++ b/src/librustc_parse/parser/path.rs @@ -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() @@ -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, |
