File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -618,12 +618,11 @@ pub trait TryInto<T>: Sized {
618
618
/// For example, there is no way to convert an [`i64`] into an [`i32`]
619
619
/// using the [`From`] trait, because an [`i64`] may contain a value
620
620
/// that an [`i32`] cannot represent and so the conversion would lose data.
621
- /// This might be handled by truncating the [`i64`] to an [`i32`] (essentially
622
- /// giving the [`i64`]'s value modulo [`i32::MAX`]) or by simply returning
623
- /// [`i32::MAX`], or by some other method. The [`From`] trait is intended
624
- /// for perfect conversions, so the `TryFrom` trait informs the
625
- /// programmer when a type conversion could go bad and lets them
626
- /// decide how to handle it.
621
+ /// This might be handled by truncating the [`i64`] to an [`i32`] or by
622
+ /// simply returning [`i32::MAX`], or by some other method. The [`From`]
623
+ /// trait is intended for perfect conversions, so the `TryFrom` trait
624
+ /// informs the programmer when a type conversion could go bad and lets
625
+ /// them decide how to handle it.
627
626
///
628
627
/// # Generic Implementations
629
628
///
You can’t perform that action at this time.
0 commit comments