Permalink
Browse files

Fix bad example of state

  • Loading branch information...
1 parent 7a5de54 commit deacf31ff0be5625ae053b6ed72ed417396bd234 @autarch autarch committed Oct 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Params/Validate.pm
View
@@ -566,7 +566,7 @@ You can also use the C<state> feature to do this:
use feature 'state';
sub foo {
- state %spec = ( ... );
+ state $spec = { ... };
my %params = validate( @_, \%spec );
}

0 comments on commit deacf31

Please sign in to comment.