diff options
| author | asquared31415 <34665709+asquared31415@users.noreply.github.com> | 2022-01-03 17:12:59 -0500 |
|---|---|---|
| committer | asquared31415 <34665709+asquared31415@users.noreply.github.com> | 2022-01-03 17:12:59 -0500 |
| commit | 9054fbb03ab2ebb048888f4963a364d800fba056 (patch) | |
| tree | c4f72659208900399321b30f6a399d553d54900b | |
| parent | ddabe0775c5f5b551d5eb54e3c4366fb8bec0c92 (diff) | |
| download | rust-9054fbb03ab2ebb048888f4963a364d800fba056.tar.gz rust-9054fbb03ab2ebb048888f4963a364d800fba056.zip | |
mirror mention of intent of From
| -rw-r--r-- | library/core/src/convert/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/core/src/convert/mod.rs b/library/core/src/convert/mod.rs index 1c2e673d604..b6211900b47 100644 --- a/library/core/src/convert/mod.rs +++ b/library/core/src/convert/mod.rs @@ -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 /// |
