Skip to content

Commit fde45f2

Browse files
authored
Fix up function arguments prose to exclude erroneous "adverbial form"
1 parent 049f91e commit fde45f2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

doc/Language/functions.pod6

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,12 @@ generated. Both automatic variables can be used that the same time.
112112
=head2 Arguments
113113
X<|Argument>
114114
115-
Arguments are supplied as a comma separated list. To disambiguate nested calls
116-
parentheses or adverbial form can be used.
115+
Arguments are supplied as a comma separated list. To disambiguate nested calls,
116+
use parentheses:
117117
118118
sub f(&c){ c() * 2 }; # call the function reference c with empty parameter list
119119
sub g($p){ $p - 2 };
120-
say(g(42)); # nest call to g in call to say
121-
f: { say g(666) }; # call f with a block
120+
say(g(42), 45); # pass only 42 to g()
122121
123122
When calling a function, positional arguments should be supplied
124123
in the same order as the function's signature. Named arguments

0 commit comments

Comments
 (0)