Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Temporal] make the exponentation of durations a number, not another …
…Duration
  • Loading branch information
moritz committed Nov 17, 2010
1 parent 94b52d1 commit eb7c591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Duration.pm
Expand Up @@ -65,7 +65,7 @@ our multi sub infix:<%>(Duration $a, Duration $b) {
}

our multi sub infix:<**>(Duration $a, Real $b) {
Duration.new: $a.x ** $b
$a.x ** $b
}
our multi sub infix:<**>(Real $a, Duration $b) {
die "Can't use a Duration as an exponent"
Expand Down

0 comments on commit eb7c591

Please sign in to comment.