Skip to content

Commit

Permalink
Rollup merge of rust-lang#46431 - steveklabnik:gh42725, r=QuietMisdre…
Browse files Browse the repository at this point in the history
…avus

Mention the name of ? in Result's docs

Fixes rust-lang#42725

or at least, this is the best we can really do. rust-lang#35946 is tracking
better errors already, so that should cover the other part of it.
  • Loading branch information
frewsxcv committed Dec 6, 2017
2 parents f5e4aa2 + 893474e commit e5fd52b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libcore/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
//!
Expand Down

0 comments on commit e5fd52b

Please sign in to comment.