mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
include feedback from workingjubilee
- Refer to trait directly - small typo in encapsulate Co-authored-by: Jubilee <46493976+workingjubilee@users.noreply.github.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user