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.
1 parent e3adc21 commit d9af121Copy full SHA for d9af121
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