Skip to content

Commit fdf9383

Browse files
authored
Fixed ambiguity in hint.rs
Needle and haystack are actually not the same, they remain constant.
1 parent f688dd6 commit fdf9383

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/hint.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ pub fn spin_loop() {
287287
///
288288
/// The compiler could theoretically make optimizations like the following:
289289
///
290-
/// - `needle` and `haystack` are always the same, move the call to `contains` outside the loop and
290+
/// - The `needle` and `haystack` do not change, move the call to `contains` outside the loop and
291291
/// delete the loop
292292
/// - Inline `contains`
293293
/// - `needle` and `haystack` have values known at compile time, `contains` is always true. Remove

0 commit comments

Comments
 (0)