Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

wrapping default as a subref

  • Loading branch information...
commit a0d72e1734ce16b1fdc00c34e4f26af91ab23214 1 parent 2a3048c
@garu garu authored chromatic committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  sections/moose.pod
View
2  sections/moose.pod
@@ -539,7 +539,7 @@ explicitly mark that it does the role:
has 'name', is => 'ro', isa => 'Str';
has 'diet', is => 'rw', isa => 'Str';
has 'birth_year', is => 'ro', isa => 'Int',
- default => (localtime)[5] + 1900;
+ default => sub { (localtime)[5] + 1900 };
B<with 'LivingBeing';>
Please sign in to comment.
Something went wrong with that request. Please try again.