Skip to content

Commit

Permalink
Document usage of unsafe block
Browse files Browse the repository at this point in the history
  • Loading branch information
Krishna Sai Veera Reddy committed Dec 2, 2019
1 parent 4ca769a commit a30ee8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libcore/cmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,7 @@ mod impls {
-1 => Less,
0 => Equal,
1 => Greater,
// SAFETY: Unreachable code
_ => unsafe { unreachable_unchecked() },
}
}
Expand Down

0 comments on commit a30ee8e

Please sign in to comment.