Skip to content

Commit 5057eb4

Browse files
committed
Minor rephrasing for EVAL
1 parent 016acef commit 5057eb4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/Type/Cool.pod6

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,11 +1428,11 @@ method EVAL(*%_)
14281428
=for code
14291429
sub EVAL($code where Cool|Blob, :$lang = 'perl6')
14301430
1431-
The method form calls subroutine form with invocant as C<$code>, passing
1432-
along named args, if any. Subroutine form coerces L<Cool> C<$code> to
1433-
L<Str>. If C<$code> is a L<Blob>, it'll be processed using the same
1434-
encoding as the C<$lang> compiler would: for C<perl6> C<$lang>, uses C<utf-8>;
1435-
for C<Perl5>, processes using the same rules as C<perl>.
1431+
If it is invoked as a method, it actually calls the subroutine form with
1432+
invocant as the first argument, C<$code>, passing along named args, if any; this
1433+
coerces L<Cool> C<$code> to L<Str>. If C<$code> is a L<Blob>, it'll be processed
1434+
using the same encoding as the C<$lang> compiler would: for C<perl6> C<$lang>,
1435+
uses C<utf-8>; for C<Perl5>, processes using the same rules as C<perl>.
14361436
14371437
This works as-is with a literal string parameter. More complex input,
14381438
such as a variable or string with embedded code, is illegal by default.

0 commit comments

Comments
 (0)