Skip to content

Commit 1abe655

Browse files
committed
Sets correct syntax
As found by @taboege. If it's an bug in Rakudo, we still have to reflect in the documentation whatever works. Closes #2878
1 parent 0d41125 commit 1abe655

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/Language/nativecall.pod6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -658,11 +658,11 @@ equivalent signature as L<a constraint on the code parameter|/type/Signature#Con
658658
659659
use NativeCall;
660660
# void SetCallback(int (*callback)(const char *))
661-
my sub SetCallback(&callback:(Str --> int32)) is native('mylib') { * }
661+
my sub SetCallback(&callback (Str --> int32)) is native('mylib') { * }
662662
663663
Note: the native code is responsible for memory management of values passed to
664-
Perl 6 callbacks this way. In other words, NativeCall will not free() strings passed
665-
to callbacks.
664+
Perl 6 callbacks this way. In other words, NativeCall will not free() strings
665+
passed to callbacks.
666666
667667
=head1 Library paths and names
668668

0 commit comments

Comments
 (0)