File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -445,9 +445,10 @@ macro_rules! writeln {
445
445
/// * Iterators that dynamically terminate.
446
446
///
447
447
/// If the determination that the code is unreachable proves incorrect, the
448
- /// program immediately terminates with a [`panic!`]. The function [`unreachable_unchecked`],
449
- /// which belongs to the [`std::hint`] module, informs the compiler to
450
- /// optimize the code out of the release version entirely.
448
+ /// program immediately terminates with a [`panic!`].
449
+ ///
450
+ /// The unsafe counterpart of this macro is the [`unreachable_unchecked`] function, which
451
+ /// will cause undefined behavior if the code is reached.
451
452
///
452
453
/// [`panic!`]: ../std/macro.panic.html
453
454
/// [`unreachable_unchecked`]: ../std/hint/fn.unreachable_unchecked.html
You can’t perform that action at this time.
0 commit comments