Skip to content

Commit

Permalink
Rollup merge of #102452 - granolocks:grammar-tweak, r=thomcc
Browse files Browse the repository at this point in the history
fix minor ungrammatical sentence

This fixes an innocuous ungrammatical sentence in example code in the  `TryFrom` documentation.
  • Loading branch information
Dylan-DPC authored Sep 29, 2022
2 parents 5f18c2b + 06624e8 commit 34f02c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/convert/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
/// }
Expand Down

0 comments on commit 34f02c3

Please sign in to comment.