We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c113a3b + 6486538 commit d3fab38Copy full SHA for d3fab38
library/core/src/slice/mod.rs
@@ -2814,7 +2814,7 @@ impl<T> [T] {
2814
let half = size / 2;
2815
let mid = base + half;
2816
2817
- // SAFETY: the call is made safe by the following inconstants:
+ // SAFETY: the call is made safe by the following invariants:
2818
// - `mid >= 0`: by definition
2819
// - `mid < size`: `mid = size / 2 + size / 4 + size / 8 ...`
2820
let cmp = f(unsafe { self.get_unchecked(mid) });
0 commit comments