Skip to content

Commit 8eaf0de

Browse files
committed
Remove incorrect plural
1 parent 83d294f commit 8eaf0de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/num/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ pub enum IntErrorKind {
110110
/// would be illegal for non-zero types.
111111
#[stable(feature = "int_error_matching", since = "1.47.0")]
112112
Zero,
113-
/// The value contains nothing other than signs `+` or `-`.
113+
/// The value contains nothing other than sign `+` or `-`.
114114
#[stable(feature = "int_error_matching", since = "1.47.0")]
115115
OnlySign,
116116
}
@@ -135,7 +135,7 @@ impl ParseIntError {
135135
IntErrorKind::PosOverflow => "number too large to fit in target type",
136136
IntErrorKind::NegOverflow => "number too small to fit in target type",
137137
IntErrorKind::Zero => "number would be zero for non-zero type",
138-
IntErrorKind::OnlySign => "only signs without digits found in string",
138+
IntErrorKind::OnlySign => "only sign without digits found in string",
139139
}
140140
}
141141
}

0 commit comments

Comments
 (0)