]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_middle/src/mir/terminator.rs
Rollup merge of #106798 - scottmcm:signum-via-cmp, r=Mark-Simulacrum
[rust.git] / compiler / rustc_middle / src / mir / terminator.rs
index 438f36373ca91b0682484f1052eefd7ad1aa889a..6e905224c1336b5d6e0d1839d078523058648834 100644 (file)
@@ -74,7 +74,7 @@ pub fn all_targets_mut(&mut self) -> &mut [BasicBlock] {
     }
 
     /// Finds the `BasicBlock` to which this `SwitchInt` will branch given the
-    /// specific value.  This cannot fail, as it'll return the `otherwise`
+    /// specific value. This cannot fail, as it'll return the `otherwise`
     /// branch if there's not a specific match for the value.
     pub fn target_for_value(&self, value: u128) -> BasicBlock {
         self.iter().find_map(|(v, t)| (v == value).then_some(t)).unwrap_or_else(|| self.otherwise())