File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ extension Int128 {
304304 public func remainderReportingOverflow(
305305 dividingBy other: Self
306306 ) -> ( partialValue: Self , overflow: Bool ) {
307- _precondition ( other != . zero, " Division by zero in remainer operation " )
307+ _precondition ( other != . zero, " Division by zero in remainder operation " )
308308 if self == . min && other == - 1 { return ( 0 , true ) }
309309 return ( Self ( Builtin . srem_Int128 ( self . _value, other. _value) ) , false )
310310 }
Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ extension UInt128 {
284284 public func remainderReportingOverflow(
285285 dividingBy other: Self
286286 ) -> ( partialValue: Self , overflow: Bool ) {
287- _precondition ( other != . zero, " Division by zero in remainer operation " )
287+ _precondition ( other != . zero, " Division by zero in remainder operation " )
288288 // Unsigned divide never overflows.
289289 return ( Self ( Builtin . urem_Int128 ( self . _value, other. _value) ) , false )
290290 }
You can’t perform that action at this time.
0 commit comments