Skip to content

Commit 44c9818

Browse files
lilyyy411ChrisDenton
authored andcommitted
Improve wording of hint::black_box docs
The wording is a bit confusing. Co-authored-by: Chris Denton <christophersdenton@gmail.com>
1 parent 89c2e3d commit 44c9818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: library/core/src/hint.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ pub fn spin_loop() {
287287
/// - Treats the call to `contains` and its result as volatile: the body of `benchmark` cannot
288288
/// optimize this away
289289
///
290-
/// This makes our benchmark much more realistic to how the function would be used in situ, where
290+
/// This makes our benchmark much more realistic to how the function would actually be used, where
291291
/// arguments are usually not known at compile time and the result is used in some way.
292292
#[inline]
293293
#[stable(feature = "bench_black_box", since = "1.66.0")]

0 commit comments

Comments
 (0)