Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix Dateish.truncate-parts signature; simplify eqv

  • Loading branch information...
commit 3515e47b48cf55f976d22fa0520d787723333c55 1 parent f7cc866
@moritz moritz authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  src/core/Mu.pm
  2. +1 −1  src/core/Temporal.pm
View
2  src/core/Mu.pm
@@ -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) {
View
2  src/core/Temporal.pm
@@ -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;

0 comments on commit 3515e47

Please sign in to comment.
Something went wrong with that request. Please try again.