Mention the name of ? in Result's docs
Fixes #42725 or at least, this is the best we can really do. #35946 is tracking better errors already, so that should cover the other part of it.
This commit is contained in:
parent
e3ed21272d
commit
893474ea6d
1 changed files with 4 additions and 4 deletions
|
@ -153,12 +153,12 @@
|
|||
//! }
|
||||
//! ```
|
||||
//!
|
||||
//! # The `?` syntax
|
||||
//! # The question mark operator, `?`
|
||||
//!
|
||||
//! When writing code that calls many functions that return the
|
||||
//! [`Result`] type, the error handling can be tedious. The [`?`]
|
||||
//! syntax hides some of the boilerplate of propagating errors up the
|
||||
//! call stack.
|
||||
//! [`Result`] type, the error handling can be tedious. The question mark
|
||||
//! operator, [`?`], hides some of the boilerplate of propagating errors
|
||||
//! up the call stack.
|
||||
//!
|
||||
//! It replaces this:
|
||||
//!
|
||||
|
|
Loading…
Add table
Reference in a new issue