Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[DateTime.t] avoid passing the same named argument twice
also remove "perl6" vim filetype, since it makes my vim freeze
  • Loading branch information
moritz committed Aug 8, 2011
1 parent 82ab11f commit d8786c3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions S32-temporal/DateTime.t
Expand Up @@ -8,7 +8,7 @@ my $orwell = DateTime.new(year => 1984);
sub dt(*%args) { DateTime.new(year => 1984, |%args) }
sub dtc(*%args) { $orwell.clone(|%args) }

sub ymd($year, $month, $day) { dt :$year, :$month, :$day }
sub ymd($year, $month, $day) { DateTime.new: :$year, :$month, :$day }
sub ymdc($year, $month, $day) { dtc :$year, :$month, :$day }

sub ds(Str $s) { DateTime.new($s) }
Expand Down Expand Up @@ -464,5 +464,3 @@ is dt(timezone => 3661).offset, 3661, 'DateTime.offset (1 hour, 1 minute, 1 seco
}

done;

# vim: ft=perl6

0 comments on commit d8786c3

Please sign in to comment.