Skip to content

Commit 2edaf68

Browse files
committed
Clarify a comment.
1 parent 0519a58 commit 2edaf68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/mir/terminator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ impl SwitchTargets {
8686
self.iter().find_map(|(v, t)| (v == value).then_some(t)).unwrap_or_else(|| self.otherwise())
8787
}
8888

89-
/// Adds a new target to the switch. But You cannot add an already present value.
89+
/// Adds a new target to the switch. Panics if you add an already present value.
9090
#[inline]
9191
pub fn add_target(&mut self, value: u128, bb: BasicBlock) {
9292
let value = Pu128(value);

0 commit comments

Comments
 (0)