about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEvie M <14899090+eievui5@users.noreply.github.com>2023-03-25 19:57:46 -0400
committerGitHub <noreply@github.com>2023-03-25 19:57:46 -0400
commit323551abb1e4a34a9e9e81ebcc49e5224af8a5cb (patch)
treee3ecb948bde91764f9b89a0b6df13eabae274528
parent0c61c7a978fe9f7b77a1d667c77d2202dadd1c10 (diff)
downloadrust-323551abb1e4a34a9e9e81ebcc49e5224af8a5cb.tar.gz
rust-323551abb1e4a34a9e9e81ebcc49e5224af8a5cb.zip
Correct typo (`back_box` -> `black_box`)
-rw-r--r--library/core/src/hint.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/hint.rs b/library/core/src/hint.rs
index ee13dae60b1..a205565773a 100644
--- a/library/core/src/hint.rs
+++ b/library/core/src/hint.rs
@@ -228,7 +228,7 @@ pub fn spin_loop() {
 /// This _immediately_ precludes any direct use of this function for cryptographic or security
 /// purposes.
 ///
-/// While not suitable in those mission-critical cases, `back_box`'s functionality can generally be
+/// While not suitable in those mission-critical cases, `black_box`'s functionality can generally be
 /// relied upon for benchmarking, and should be used there. It will try to ensure that the
 /// compiler doesn't optimize away part of the intended test code based on context. For
 /// example: