Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix bad example of state

  • Loading branch information...
commit deacf31ff0be5625ae053b6ed72ed417396bd234 1 parent 7a5de54
@autarch authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Params/Validate.pm
View
2  lib/Params/Validate.pm
@@ -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 );
}
Please sign in to comment.
Something went wrong with that request. Please try again.