X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FFunction-Parameters.git;a=blobdiff_plain;f=lib%2FFunction%2FParameters.pm;h=4bd2e1c760c7a9518b4bd159ffbbd2918e219b4a;hp=51679df1e661f38c04fd8ec8ad6f8359c664c323;hb=382626afe1622f3d97b6ad4cf132263b3b7aad4d;hpb=ff265988561375d3cf480004e29e3891094c0afb diff --git a/lib/Function/Parameters.pm b/lib/Function/Parameters.pm index 51679df..4bd2e1c 100644 --- a/lib/Function/Parameters.pm +++ b/lib/Function/Parameters.pm @@ -746,7 +746,7 @@ types. That is, before each parameter you can put a type specification consisting of identifiers (C), 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