Clarify a comment.
This commit is contained in:
parent
0519a58f7a
commit
2edaf684da
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ impl SwitchTargets {
|
|||
self.iter().find_map(|(v, t)| (v == value).then_some(t)).unwrap_or_else(|| self.otherwise())
|
||||
}
|
||||
|
||||
/// Adds a new target to the switch. But You cannot add an already present value.
|
||||
/// Adds a new target to the switch. Panics if you add an already present value.
|
||||
#[inline]
|
||||
pub fn add_target(&mut self, value: u128, bb: BasicBlock) {
|
||||
let value = Pu128(value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue