Skip to content

Commit 40b0715

Browse files
committed
Use code block and not a sub in example
.of on sub {} uses Callable.of()
1 parent 680163f commit 40b0715

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/Type/Code.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Defined as:
6767
Returns the L<return type constraint|/type/Signature#Constraining_Return_Types>
6868
of the C<Code>:
6969
70-
m: say sub () returns Int {}.of
70+
m: say -> () --> Int {}.of
7171
# OUTPUT: (Int)
7272
7373
=head2 method signature

0 commit comments

Comments
 (0)