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 {
304
304
public func remainderReportingOverflow(
305
305
dividingBy other: Self
306
306
) -> ( partialValue: Self , overflow: Bool ) {
307
- _precondition ( other != . zero, " Division by zero in remainer operation " )
307
+ _precondition ( other != . zero, " Division by zero in remainder operation " )
308
308
if self == . min && other == - 1 { return ( 0 , true ) }
309
309
return ( Self ( Builtin . srem_Int128 ( self . _value, other. _value) ) , false )
310
310
}
Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ extension UInt128 {
284
284
public func remainderReportingOverflow(
285
285
dividingBy other: Self
286
286
) -> ( partialValue: Self , overflow: Bool ) {
287
- _precondition ( other != . zero, " Division by zero in remainer operation " )
287
+ _precondition ( other != . zero, " Division by zero in remainder operation " )
288
288
// Unsigned divide never overflows.
289
289
return ( Self ( Builtin . urem_Int128 ( self . _value, other. _value) ) , false )
290
290
}
You can’t perform that action at this time.
0 commit comments