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 +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -466,10 +466,10 @@ pub trait Into<T>: Sized {
466466/// Prefer using [`Into`] over using `From` when specifying trait bounds on a generic function.
467467/// This way, types that directly implement [`Into`] can be used as arguments as well.
468468///
469- /// The `From` is also very useful when performing error handling. When constructing a function
469+ /// The `From` trait is also very useful when performing error handling. When constructing a function
470470/// that is capable of failing, the return type will generally be of the form `Result<T, E>`.
471- /// The `From` trait simplifies error handling by allowing a function to return a single error type
472- /// that encapsulate multiple error types. See the "Examples" section and [the book][book] for more
471+ /// `From` simplifies error handling by allowing a function to return a single error type
472+ /// that encapsulates multiple error types. See the "Examples" section and [the book][book] for more
473473/// details.
474474///
475475/// **Note: This trait must not fail**. The `From` trait is intended for perfect conversions.
You can’t perform that action at this time.
0 commit comments