This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 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 {
618618/// For example, there is no way to convert an [`i64`] into an [`i32`]
619619/// using the [`From`] trait, because an [`i64`] may contain a value
620620/// 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.
627626///
628627/// # Generic Implementations
629628///
You can’t perform that action at this time.
0 commit comments