Update never_type docs based on feedback

This commit is contained in:
Andrew Cann 2017-12-10 15:13:55 +08:00
parent a2e79a7e52
commit 172f16bc9d

View file

@ -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");
/// ```
///