Skip to content

Commit 132e383

Browse files
authored
Rollup merge of #116350 - Nilstrieb:in-situ, r=Dylan-DPC
Improve wording of `hint::black_box` docs The wording is a bit confusing. squash of #109634
2 parents d7621cd + 44c9818 commit 132e383

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/hint.rs

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

0 commit comments

Comments
 (0)