mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 17:18:32 +03:00
fix minor ungrammatical sentence
This commit is contained in:
@@ -440,7 +440,7 @@ pub trait TryInto<T>: Sized {
|
||||
///
|
||||
/// fn try_from(value: i32) -> Result<Self, Self::Error> {
|
||||
/// if value <= 0 {
|
||||
/// Err("GreaterThanZero only accepts value superior than zero!")
|
||||
/// Err("GreaterThanZero only accepts values greater than zero!")
|
||||
/// } else {
|
||||
/// Ok(GreaterThanZero(value))
|
||||
/// }
|
||||
|
||||
Reference in New Issue
Block a user