Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix Dateish.truncate-parts signature; simplify eqv
  • Loading branch information
moritz committed Oct 2, 2011
1 parent f7cc866 commit 3515e47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/Mu.pm
Expand Up @@ -282,7 +282,7 @@ sub infix:<=:=>(Mu \$x, Mu \$y) {

proto sub infix:<eqv>(Mu $, Mu $) { * }
multi sub infix:<eqv>(Mu $a, Mu $b) {
$a.WHAT === $b.WHAT && $a === $b
$a.WHICH eq $b.WHICH
}

multi sub infix:<eqv>(@a, @b) {
Expand Down
2 changes: 1 addition & 1 deletion src/core/Temporal.pm
Expand Up @@ -101,7 +101,7 @@ my role Dateish {
1 .. self.days-in-month);
}

method truncate-parts($unit, %parts is copy) {
method truncate-parts($unit, %parts? is copy) {
# Helper for DateTime.truncated-to and Date.truncated-to.
if $unit eq 'week' {
my $dc = self.get-daycount;
Expand Down

0 comments on commit 3515e47

Please sign in to comment.