diff options
| author | aticu <15schnic@gmail.com> | 2020-08-27 01:16:18 +0200 |
|---|---|---|
| committer | aticu <15schnic@gmail.com> | 2020-08-27 01:16:18 +0200 |
| commit | 39f5ebcd7401b050ca948a28db9bf105b9ca6a88 (patch) | |
| tree | 80f442c2c8cbdd515db4360a0dbc4ddd5333f7f6 | |
| parent | 2d8a3b9181f41d3af9b9f016c5d73b2553e344bf (diff) | |
| download | rust-39f5ebcd7401b050ca948a28db9bf105b9ca6a88.tar.gz rust-39f5ebcd7401b050ca948a28db9bf105b9ca6a88.zip | |
Fix typo in `std::hint::black_box` docs
| -rw-r--r-- | library/core/src/hint.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/hint.rs b/library/core/src/hint.rs index 461b4c79a1d..d40a3802867 100644 --- a/library/core/src/hint.rs +++ b/library/core/src/hint.rs @@ -101,7 +101,7 @@ pub fn spin_loop() { /// [`std::convert::identity`]: https://doc.rust-lang.org/core/convert/fn.identity.html /// /// Unlike [`std::convert::identity`], a Rust compiler is encouraged to assume that `black_box` can -/// 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 /// behavior in the calling code. This property makes `black_box` useful for writing code in which /// certain optimizations are not desired, such as benchmarks. /// |
