Update never_type docs based on feedback
This commit is contained in:
parent
a2e79a7e52
commit
172f16bc9d
@ -79,7 +79,7 @@ mod prim_bool { }
|
||||
/// write:
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(never_type)]
|
||||
/// #![feature(never_type)]
|
||||
/// # fn foo() -> u32 {
|
||||
/// let x: ! = {
|
||||
/// return 123
|
||||
@ -131,6 +131,7 @@ mod prim_bool { }
|
||||
/// [`Result<String, !>`] which we can unpack like this:
|
||||
///
|
||||
/// ```ignore (string-from-str-error-type-is-not-never-yet)
|
||||
/// // NOTE: This does not work today!
|
||||
/// let Ok(s) = String::from_str("hello");
|
||||
/// ```
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user