Skip to content

Commit 39f5ebc

Browse files
committed
Fix typo in std::hint::black_box docs
1 parent 2d8a3b9 commit 39f5ebc

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
@@ -101,7 +101,7 @@ pub fn spin_loop() {
101101
/// [`std::convert::identity`]: https://doc.rust-lang.org/core/convert/fn.identity.html
102102
///
103103
/// 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
104+
/// use `dummy` in any possible valid way that Rust code is allowed to without introducing undefined
105105
/// behavior in the calling code. This property makes `black_box` useful for writing code in which
106106
/// certain optimizations are not desired, such as benchmarks.
107107
///

0 commit comments

Comments
 (0)