Improve wording of hint::black_box docs
The wording is a bit confusing. Co-authored-by: Chris Denton <christophersdenton@gmail.com>
This commit is contained in:
parent
89c2e3d3d7
commit
44c9818993
1 changed files with 1 additions and 1 deletions
|
|
@ -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")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue