Skip to content

Commit 2f8f417

Browse files
authored
Add extra space around &by param
To make it more obvious it's a positional param, as some reportedly[^1] try to use it as a named arg. [1] https://rt.perl.org/Ticket/Display.html?id=130517#ticket-history
1 parent 7a0843b commit 2f8f417

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/Type/Any.pod6

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Examples:
129129
Defined as:
130130
131131
multi method sort()
132-
multi method sort(&by)
132+
multi method sort( &by )
133133
134134
Sorts iterables with C<infix:<cmp>> or given code object and returns a new C<List>.
135135
@@ -406,7 +406,7 @@ Coerce the invocant first to a C<List> and then to a L<Supply|/type/Supply>.
406406
Defined As:
407407
408408
multi method min(--> Any:D)
409-
multi method min(&by --> Any:D)
409+
multi method min( &by --> Any:D)
410410
411411
Coerces to Iterable and returns the numerically smallest element. If a
412412
C<Callable> is provided it is called with each element and its smallest return
@@ -417,7 +417,7 @@ values is returned.
417417
Defined As:
418418
419419
multi method max(--> Any:D)
420-
multi method max(&by --> Any:D)
420+
multi method max( &by --> Any:D)
421421
422422
Coerces to Iterable and returns the numerically biggest element. If a
423423
C<Callable> is provided it is called with each element and its biggest return
@@ -428,7 +428,7 @@ values is returned.
428428
Defined As:
429429
430430
multi method minmax(--> List:D)
431-
multi method minmax(&by --> List:D)
431+
multi method minmax( &by --> List:D)
432432
433433
Returns a list containing the smallest and the biggest element. If a
434434
C<Callable> is provided each element is filtered and then numerically compared.

0 commit comments

Comments
 (0)