Add better documentation for unsafe block

This commit is contained in:
Krishna Sai Veera Reddy 2019-12-10 14:30:06 -07:00
parent a30ee8e763
commit 1f07aa582a
1 changed files with 1 additions and 1 deletions

View File

@ -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() },
}
}