Rollup merge of #110689 - Spartan2909:fix-grammar, r=JohnTitor
Fix grammar in core::hint::unreachable_unchecked() docs Fixes a minor grammar error in the docs for core::hint::unreachable_unchecked()
This commit is contained in:
commit
96acbd8e28
@ -73,8 +73,8 @@ use crate::intrinsics;
|
|||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// While using `unreachable_unchecked()` is perfectly sound in the following
|
/// While using `unreachable_unchecked()` is perfectly sound in the following
|
||||||
/// example, the compiler is able to prove that a division by zero is not
|
/// example, as the compiler is able to prove that a division by zero is not
|
||||||
/// possible. Benchmarking reveals that `unreachable_unchecked()` provides
|
/// possible, benchmarking reveals that `unreachable_unchecked()` provides
|
||||||
/// no benefit over using [`unreachable!`], while the latter does not introduce
|
/// no benefit over using [`unreachable!`], while the latter does not introduce
|
||||||
/// the possibility of Undefined Behavior.
|
/// the possibility of Undefined Behavior.
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user