diff options
| author | Ethan Brierley <ethanboxx@gmail.com> | 2020-10-06 21:03:10 +0100 |
|---|---|---|
| committer | Ethan Brierley <ethanboxx@gmail.com> | 2020-10-06 21:03:10 +0100 |
| commit | 8eaf0de1f45924a0fdbde00d4c7fe0333b377993 (patch) | |
| tree | 21d09f5443ad5a69286701cca7beebc8924bf268 | |
| parent | 83d294f06a8f78f4956333a5285bb2c4f7b8a6a9 (diff) | |
| download | rust-8eaf0de1f45924a0fdbde00d4c7fe0333b377993.tar.gz rust-8eaf0de1f45924a0fdbde00d4c7fe0333b377993.zip | |
Remove incorrect plural
| -rw-r--r-- | library/core/src/num/error.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/num/error.rs b/library/core/src/num/error.rs index ba7c94656ce..a8f8a7804fd 100644 --- a/library/core/src/num/error.rs +++ b/library/core/src/num/error.rs @@ -110,7 +110,7 @@ pub enum IntErrorKind { /// would be illegal for non-zero types. #[stable(feature = "int_error_matching", since = "1.47.0")] Zero, - /// The value contains nothing other than signs `+` or `-`. + /// The value contains nothing other than sign `+` or `-`. #[stable(feature = "int_error_matching", since = "1.47.0")] OnlySign, } @@ -135,7 +135,7 @@ impl ParseIntError { IntErrorKind::PosOverflow => "number too large to fit in target type", IntErrorKind::NegOverflow => "number too small to fit in target type", IntErrorKind::Zero => "number would be zero for non-zero type", - IntErrorKind::OnlySign => "only signs without digits found in string", + IntErrorKind::OnlySign => "only sign without digits found in string", } } } |
