Add better documentation for unsafe block
This commit is contained in:
parent
a30ee8e763
commit
1f07aa582a
|
@ -1134,7 +1134,7 @@ mod impls {
|
|||
-1 => Less,
|
||||
0 => Equal,
|
||||
1 => Greater,
|
||||
// SAFETY: Unreachable code
|
||||
// SAFETY: bool as i8 returns 0 or 1, so the difference can't be anything else
|
||||
_ => unsafe { unreachable_unchecked() },
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue