File tree 2 files changed +6
-8
lines changed
2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 106
106
//!
107
107
//! *It's much nicer!*
108
108
//!
109
- //! Ending the expression with [`?`] will result in the unwrapped
110
- //! success ([`Some`]) value, unless the result is [`None`], in which case
111
- //! [`None`] is returned early from the enclosing function.
109
+ //! Ending the expression with [`?`] will result in the [`Some`]'s unwrapped value, unless the
110
+ //! result is [`None`], in which case [`None`] is returned early from the enclosing function.
112
111
//!
113
- //! [`?`] can only be used in functions that return [`Option`] because of the
112
+ //! [`?`] can be used in functions that return [`Option`] because of the
114
113
//! early return of [`None`] that it provides.
115
114
//!
116
115
//! [`?`]: crate::ops::Try
Original file line number Diff line number Diff line change 209
209
//!
210
210
//! *It's much nicer!*
211
211
//!
212
- //! Ending the expression with [`?`] will result in the unwrapped
213
- //! success ([`Ok`]) value, unless the result is [`Err`], in which case
214
- //! [`Err`] is returned early from the enclosing function.
212
+ //! Ending the expression with [`?`] will result in the [`Ok`]'s unwrapped value, unless the result
213
+ //! is [`Err`], in which case [`Err`] is returned early from the enclosing function.
215
214
//!
216
- //! [`?`] can only be used in functions that return [`Result`] because of the
215
+ //! [`?`] can be used in functions that return [`Result`] because of the
217
216
//! early return of [`Err`] that it provides.
218
217
//!
219
218
//! [`expect`]: Result::expect
You can’t perform that action at this time.
0 commit comments