Skip to content

Commit 172f16b

Browse files
committed
Update never_type docs based on feedback
1 parent a2e79a7 commit 172f16b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libstd/primitive_docs.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ mod prim_bool { }
7979
/// write:
8080
///
8181
/// ```
82-
/// # #![feature(never_type)]
82+
/// #![feature(never_type)]
8383
/// # fn foo() -> u32 {
8484
/// let x: ! = {
8585
/// return 123
@@ -131,6 +131,7 @@ mod prim_bool { }
131131
/// [`Result<String, !>`] which we can unpack like this:
132132
///
133133
/// ```ignore (string-from-str-error-type-is-not-never-yet)
134+
/// // NOTE: This does not work today!
134135
/// let Ok(s) = String::from_str("hello");
135136
/// ```
136137
///

0 commit comments

Comments
 (0)