Skip to content

Commit 85264c8

Browse files
authored
Reworded doc comment for gcd
1 parent 8552bec commit 85264c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/IntegerUtilities/GCD.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
/// If both inputs are zero, the result is zero. If one input is zero, the
1515
/// result is the absolute value of the other input.
1616
///
17-
/// The resulting value must be representable within the value's type. In
18-
/// particular, the gcd of a signed, fixed-width integer type's minimum
19-
/// with itself or zero results in a value that cannot be represented:
17+
/// The result must be representable within its type. In particular, the gcd
18+
/// of a signed, fixed-width integer type's minimum with itself (or zero)
19+
/// cannot be represented, and results in a trap.
2020
///
2121
/// gcd(Int.min, Int.min) // Overflow error
2222
/// gcd(Int.min, 0) // Overflow error

0 commit comments

Comments
 (0)