Rollup merge of #75967 - aticu:blackbox_typo, r=Dylan-DPC

Fix typo in `std::hint::black_box` docs
This commit is contained in:
Pietro Albini 2020-08-28 10:24:04 +02:00 committed by GitHub
commit 0f1ffa85d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.
///