Rollup merge of #102452 - granolocks:grammar-tweak, r=thomcc
fix minor ungrammatical sentence This fixes an innocuous ungrammatical sentence in example code in the `TryFrom` documentation.
This commit is contained in:
commit
34f02c3e8d
@ -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))
|
||||
/// }
|
||||
|
Loading…
x
Reference in New Issue
Block a user