about summary refs log tree commit diff
diff options
context:
space:
mode:
authorasquared31415 <34665709+asquared31415@users.noreply.github.com>2022-01-03 17:12:59 -0500
committerasquared31415 <34665709+asquared31415@users.noreply.github.com>2022-01-03 17:12:59 -0500
commit9054fbb03ab2ebb048888f4963a364d800fba056 (patch)
treec4f72659208900399321b30f6a399d553d54900b
parentddabe0775c5f5b551d5eb54e3c4366fb8bec0c92 (diff)
downloadrust-9054fbb03ab2ebb048888f4963a364d800fba056.tar.gz
rust-9054fbb03ab2ebb048888f4963a364d800fba056.zip
mirror mention of intent of From
-rw-r--r--library/core/src/convert/mod.rs3
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
 ///