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:
Matthias Krüger 2023-04-23 20:06:32 +02:00 committed by GitHub
commit 96acbd8e28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.
/// ///