Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[t/spec] Add "our" to infix:<mod> definition so [mod] works.
  • Loading branch information
colomon committed Jun 8, 2010
1 parent 34c1ba4 commit 7821618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Real.pm
Expand Up @@ -302,6 +302,6 @@ multi sub infix:<**>(Num $a, Num $b) {
# NOTE: mod is only actually defined for integer types!
# But if you have an integer type that does Real, this
# should automatically define an appropriate mod for you.
multi sub infix:<mod>(Real $a, Real $b) {
our multi sub infix:<mod>(Real $a, Real $b) {
$a - ($a div $b) * $b;
}

0 comments on commit 7821618

Please sign in to comment.