about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonas Pleyer <59249415+jonaspleyer@users.noreply.github.com>2024-03-04 10:04:46 +0100
committerGitHub <noreply@github.com>2024-03-04 10:04:46 +0100
commite46306043b8e8270b1cace5bec7cd563e8ea9ae1 (patch)
treebc9fe0451b5207b1ff92eccee267c75be5d722f5
parentfb2b918866e0457857c17f71911df31da1d2dac3 (diff)
downloadrust-e46306043b8e8270b1cace5bec7cd563e8ea9ae1.tar.gz
rust-e46306043b8e8270b1cace5bec7cd563e8ea9ae1.zip
include feedback from workingjubilee
- Refer to trait directly
- small typo in encapsulate

Co-authored-by: Jubilee <46493976+workingjubilee@users.noreply.github.com>
-rw-r--r--library/core/src/convert/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/convert/mod.rs b/library/core/src/convert/mod.rs
index 4dddf92b3e0..63fd23ea9a9 100644
--- a/library/core/src/convert/mod.rs
+++ b/library/core/src/convert/mod.rs
@@ -468,8 +468,8 @@ pub trait Into<T>: Sized {
 ///
 /// The `From` trait is also very useful when performing error handling. When constructing a function
 /// that is capable of failing, the return type will generally be of the form `Result<T, E>`.
-/// It simplifies error handling by allowing a function to return a single error type
-/// that encapsulate multiple error types. See the "Examples" section and [the book][book] for more
+/// `From` simplifies error handling by allowing a function to return a single error type
+/// that encapsulates multiple error types. See the "Examples" section and [the book][book] for more
 /// details.
 ///
 /// **Note: This trait must not fail**. The `From` trait is intended for perfect conversions.