We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 412a637 commit 8b02aa1Copy full SHA for 8b02aa1
src/libcore/option.rs
@@ -296,16 +296,14 @@ impl<T> Option<T> {
296
297
/// Moves the value `v` out of the `Option<T>` if it is `Some(v)`.
298
///
299
- /// # Panics
300
- ///
301
- /// Panics if the self value equals `None`.
302
303
- /// # Safety note
304
305
/// In general, because this function may panic, its use is discouraged.
306
/// Instead, prefer to use pattern matching and handle the `None`
307
/// case explicitly.
308
+ /// # Panics
+ ///
+ /// Panics if the self value equals `None`.
309
/// # Examples
310
311
/// ```
0 commit comments