Skip to content

Commit 84096e0

Browse files
author
Unreachable
committed
improve docs for std::hint::unreachable_unchecked()
1 parent 53f2165 commit 84096e0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/libcore/hint.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ use intrinsics;
2121
/// difficult-to-debug problems.
2222
///
2323
/// Use this function only when you can prove that the code will never call it.
24-
///
25-
/// The [`unreachable!()`] macro is the safe counterpart of this function, which
26-
/// will panic instead when executed.
24+
/// Otherwise, consider using the [`unreachable!()`] macro, which does not allow
25+
/// optimizations but will panic when executed.
2726
///
2827
/// [`unreachable!()`]: ../macro.unreachable.html
2928
///

0 commit comments

Comments
 (0)