Fixed the example showing parameter type constraints
authorNaveed Massjouni <naveedm9@gmail.com>
Sat, 7 Sep 2013 08:30:11 +0000 (04:30 -0400)
committerLukas Mai <l.mai@web.de>
Sun, 15 Sep 2013 15:40:10 +0000 (17:40 +0200)
commit6865b43c9c231602cece6e47702f9e587d276dbb
tree6ef4369275478ffe0cb4252c310a697b85f87796
parent8d34f4d9938bee8b5b8aed1865f9cca4e20d43a2
Fixed the example showing parameter type constraints

String is not a Moose::Util::TypeConstraints type. To make the example
work, it needs to be Str.
See https://metacpan.org/module/Moose::Util::TypeConstraints
lib/Function/Parameters.pm