From 893474ea6d16497b23503582f5b85be2ea2bab0b Mon Sep 17 00:00:00 2001 From: steveklabnik Date: Fri, 1 Dec 2017 13:00:45 -0500 Subject: [PATCH] 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. --- src/libcore/result.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libcore/result.rs b/src/libcore/result.rs index db5bffced10cc..959935242dcc5 100644 --- a/src/libcore/result.rs +++ b/src/libcore/result.rs @@ -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: //!