Skip to content

Commit

Permalink
Improve wording of hint::black_box docs
Browse files Browse the repository at this point in the history
The wording is a bit confusing.

Co-authored-by: 4gboframram <[email protected]>
Co-authored-by: Chris Denton <[email protected]>
  • Loading branch information
2 people authored and Noratrieb committed Oct 2, 2023
1 parent 89c2e3d commit 72c1a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/hint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ pub fn spin_loop() {
/// - Treats the call to `contains` and its result as volatile: the body of `benchmark` cannot
/// optimize this away
///
/// This makes our benchmark much more realistic to how the function would be used in situ, where
/// This makes our benchmark much more realistic to how the function would actually be used, where
/// arguments are usually not known at compile time and the result is used in some way.
#[inline]
#[stable(feature = "bench_black_box", since = "1.66.0")]
Expand Down

0 comments on commit 72c1a6f

Please sign in to comment.