We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f688dd6 commit fdf9383Copy full SHA for fdf9383
library/core/src/hint.rs
@@ -287,7 +287,7 @@ pub fn spin_loop() {
287
///
288
/// The compiler could theoretically make optimizations like the following:
289
290
-/// - `needle` and `haystack` are always the same, move the call to `contains` outside the loop and
+/// - The `needle` and `haystack` do not change, move the call to `contains` outside the loop and
291
/// delete the loop
292
/// - Inline `contains`
293
/// - `needle` and `haystack` have values known at compile time, `contains` is always true. Remove
0 commit comments