We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
std::hint::black_box
1 parent 2d8a3b9 commit 39f5ebcCopy full SHA for 39f5ebc
library/core/src/hint.rs
@@ -101,7 +101,7 @@ pub fn spin_loop() {
101
/// [`std::convert::identity`]: https://doc.rust-lang.org/core/convert/fn.identity.html
102
///
103
/// Unlike [`std::convert::identity`], a Rust compiler is encouraged to assume that `black_box` can
104
-/// use `x` in any possible valid way that Rust code is allowed to without introducing undefined
+/// use `dummy` in any possible valid way that Rust code is allowed to without introducing undefined
105
/// behavior in the calling code. This property makes `black_box` useful for writing code in which
106
/// certain optimizations are not desired, such as benchmarks.
107
0 commit comments