Skip to content

Commit

Permalink
mirror mention of intent of From
Browse files Browse the repository at this point in the history
  • Loading branch information
asquared31415 committed Jan 3, 2022
1 parent ddabe07 commit 9054fbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/core/src/convert/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ pub trait Into<T>: Sized {
/// that encapsulate multiple error types. See the "Examples" section and [the book][book] for more
/// details.
///
/// **Note: This trait must not fail**. If the conversion can fail, use [`TryFrom`].
/// **Note: This trait must not fail**. The `From` trait is intended for perfect conversions.
/// If the conversion can fail or is not perfect, use [`TryFrom`].
///
/// # Generic Implementations
///
Expand Down

0 comments on commit 9054fbb

Please sign in to comment.