Skip to content

Commit 68952e8

Browse files
committed
It is remainder, not remainer
1 parent 95ce270 commit 68952e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/public/core/Int128.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

stdlib/public/core/UInt128.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)