Merge pull request #3 from ironcamel/fix-types-example
[p5sagit/Function-Parameters.git] / lib / Function / Parameters.pm
index 99aef48..4bd2e1c 100644 (file)
@@ -7,7 +7,7 @@ use Carp qw(confess);
 
 use XSLoader;
 BEGIN {
-       our $VERSION = '1.0104';
+       our $VERSION = '1.0202';
        XSLoader::load;
 }
 
@@ -746,7 +746,7 @@ types. That is, before each parameter you can put a type specification
 consisting of identifiers (C<Foo>), unions (C<... | ...>), and parametric types
 (C<...[...]>). Example:
 
-  fun foo(Int $n, ArrayRef[String | CodeRef] $cb) { ... }
+  fun foo(Int $n, ArrayRef[Str | CodeRef] $cb) { ... }
 
 If you do this, the type reification function corresponding to the keyword will
 be called to turn the type (a string) into a constraint object. The default