Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
avoid useless default value
  • Loading branch information
moritz committed Oct 2, 2011
1 parent da526e3 commit 8187463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S32-temporal/DateTime-Instant-Duration.t
Expand Up @@ -23,7 +23,7 @@ sub dti(*%args) { DateTime.new(|{year => 1984, %args}).Instant }

sub dsi($s) { DateTime.new($s).Instant }

sub diff(%early = (), *%late) { + do dti(|%late) - dti(|%early) }
sub diff(%early, *%late) { + do dti(|%late) - dti(|%early) }

sub days($n) { $n * 24 * 60 * 60 }

Expand Down

0 comments on commit 8187463

Please sign in to comment.