Skip to content

Commit 96acbd8

Browse files
authored
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()
2 parents 12a539f + 0cc1b86 commit 96acbd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/hint.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ use crate::intrinsics;
7373
/// ```
7474
///
7575
/// While using `unreachable_unchecked()` is perfectly sound in the following
76-
/// example, the compiler is able to prove that a division by zero is not
77-
/// possible. Benchmarking reveals that `unreachable_unchecked()` provides
76+
/// example, as the compiler is able to prove that a division by zero is not
77+
/// possible, benchmarking reveals that `unreachable_unchecked()` provides
7878
/// no benefit over using [`unreachable!`], while the latter does not introduce
7979
/// the possibility of Undefined Behavior.
8080
///

0 commit comments

Comments
 (0)