Skip to content

Commit 65dedee

Browse files
authored
Merge pull request #2677 from perl6/clarify-gcd-zero
Clarify gcd with zero results
2 parents e482247 + 454bcfd commit 65dedee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/Language/operators.pod6

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,6 +1164,7 @@ Please note that this has not yet been implemented.
11641164
multi sub infix:<gcd>($a, $b --> Int:D)
11651165
11661166
Coerces both arguments to L<Int|/type/Int> and returns the greatest common divisor.X<|greatest common divisor operator>
1167+
If one of its arguments is 0, the other is returned (when both arguments are 0, the operator returns 0).
11671168
11681169
=head2 infix C«lcm»
11691170

0 commit comments

Comments
 (0)