diff options
| author | Andy Russell <arussell123@gmail.com> | 2019-11-05 15:10:24 -0500 |
|---|---|---|
| committer | Andy Russell <arussell123@gmail.com> | 2019-11-05 15:10:24 -0500 |
| commit | ad550b8ef32e336ad74a87669de041eba9f7d1c6 (patch) | |
| tree | 9846d3ad950c864884df163aa6feae07d8b97e01 /src/libsyntax/parse/parser/ty.rs | |
| parent | 1423bec54cf2db283b614e527cfd602b481485d1 (diff) | |
| download | rust-ad550b8ef32e336ad74a87669de041eba9f7d1c6.tar.gz rust-ad550b8ef32e336ad74a87669de041eba9f7d1c6.zip | |
use American spelling for `pluralize!`
Diffstat (limited to 'src/libsyntax/parse/parser/ty.rs')
| -rw-r--r-- | src/libsyntax/parse/parser/ty.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser/ty.rs b/src/libsyntax/parse/parser/ty.rs index e8f718a2483..b770b90705c 100644 --- a/src/libsyntax/parse/parser/ty.rs +++ b/src/libsyntax/parse/parser/ty.rs @@ -10,7 +10,7 @@ use crate::parse::token::{self, Token}; use crate::source_map::Span; use crate::symbol::{kw}; -use errors::{Applicability, pluralise}; +use errors::{Applicability, pluralize}; /// Returns `true` if `IDENT t` can start a type -- `IDENT::a::b`, `IDENT<u8, u8>`, /// `IDENT<<u8 as Trait>::AssocTy>`. @@ -412,7 +412,7 @@ impl<'a> Parser<'a> { } err.span_suggestion_hidden( bound_list, - &format!("remove the trait bound{}", pluralise!(negative_bounds_len)), + &format!("remove the trait bound{}", pluralize!(negative_bounds_len)), new_bound_list, Applicability::MachineApplicable, ); |
