Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix typos
eli-se++
  • Loading branch information
coke committed Mar 30, 2015
1 parent 1c2228f commit d34c2da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Language/functions.pod
Expand Up @@ -549,7 +549,7 @@ sub double(Int(Cool) $x) {
}
say double '21'; # 42
say dobule Any; # Type check failed in binding $x; expected 'Cool' but got 'Any'
say double Any; # Type check failed in binding $x; expected 'Cool' but got 'Any'
=end code
Here the C<Int> is the target type to which the argument will be coerced, and
Expand All @@ -559,6 +559,6 @@ If the accepted input type is L<Any|/type/Any>, you can abbreviate C<Int(Any)>
to C<Int()>.
Coercion types are supposed to work wherever types work, but Rakudo currently
(2015.02) only implements them for subroutine paramters.
(2015.02) only implements them for subroutine parameters.
=end pod

0 comments on commit d34c2da

Please sign in to comment.