Skip to content

Commit 294bde9

Browse files
committed
Documentation fix: remainder matches sign of lhs, not rhs.
1 parent 8bbffac commit 294bde9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/Integers.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ public protocol BinaryInteger :
12111211
///
12121212
/// - Parameter rhs: The value to divide this value by.
12131213
/// - Returns: A tuple containing the quotient and remainder of this value
1214-
/// divided by `rhs`. The remainder has the same sign as `rhs`.
1214+
/// divided by `rhs`. The remainder has the same sign as `lhs`.
12151215
func quotientAndRemainder(dividingBy rhs: Self)
12161216
-> (quotient: Self, remainder: Self)
12171217

0 commit comments

Comments
 (0)