Skip to content

Commit

Permalink
Rollup merge of rust-lang#110689 - Spartan2909:fix-grammar, r=JohnTitor
Browse files Browse the repository at this point in the history
Fix grammar in core::hint::unreachable_unchecked() docs

Fixes a minor grammar error in the docs for core::hint::unreachable_unchecked()
  • Loading branch information
matthiaskrgr committed Apr 23, 2023
2 parents 12a539f + 0cc1b86 commit 96acbd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/hint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ use crate::intrinsics;
/// ```
///
/// While using `unreachable_unchecked()` is perfectly sound in the following
/// example, the compiler is able to prove that a division by zero is not
/// possible. Benchmarking reveals that `unreachable_unchecked()` provides
/// example, as the compiler is able to prove that a division by zero is not
/// possible, benchmarking reveals that `unreachable_unchecked()` provides
/// no benefit over using [`unreachable!`], while the latter does not introduce
/// the possibility of Undefined Behavior.
///
Expand Down

0 comments on commit 96acbd8

Please sign in to comment.