diff options
| author | Tyler Mandry <tmandry@gmail.com> | 2023-10-02 16:09:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-02 16:09:43 -0400 |
| commit | 132e38366fd2a1404d74d0757e51c81a2f56cb4d (patch) | |
| tree | 158951e41277b1675a65ea723091d67b45639ce0 | |
| parent | d7621cdb19efe246b62f2d25ed9bfe3afe6f2917 (diff) | |
| parent | 44c9818993d1ec5e7e6debdbb33ed2139341b60f (diff) | |
| download | rust-132e38366fd2a1404d74d0757e51c81a2f56cb4d.tar.gz rust-132e38366fd2a1404d74d0757e51c81a2f56cb4d.zip | |
Rollup merge of #116350 - Nilstrieb:in-situ, r=Dylan-DPC
Improve wording of `hint::black_box` docs The wording is a bit confusing. squash of #109634
| -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 4bf3da07354..ff177c70d39 100644 --- a/library/core/src/hint.rs +++ b/library/core/src/hint.rs @@ -277,7 +277,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")] |
