Skip to content

Commit 6136eaa

Browse files
authored
s/&by/&custom-routine-to-use/
To avoid people thinking it's a named arg.
1 parent 4009d72 commit 6136eaa

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(&custom-routine-to-use)
133133
134134
Sorts iterables with C<infix:<cmp>> or given code object and returns a new C<List>.
135135
Optionally, takes a L<Callable> as a positional parameter, specifying how to
@@ -433,7 +433,7 @@ Coerce the invocant first to a C<List> and then to a L<Supply|/type/Supply>.
433433
Defined As:
434434
435435
multi method min(--> Any:D)
436-
multi method min(&by --> Any:D)
436+
multi method min(&custom-routine-to-use --> Any:D)
437437
438438
Coerces to Iterable and returns the numerically smallest element. If a
439439
C<Callable> positional argument is provided it is called with each element
@@ -444,7 +444,7 @@ and its smallest return values is returned.
444444
Defined As:
445445
446446
multi method max(--> Any:D)
447-
multi method max(&by --> Any:D)
447+
multi method max(&custom-routine-to-use --> Any:D)
448448
449449
Coerces to Iterable and returns the numerically biggest element. If a
450450
C<Callable> positional argument is provided it is called with each element
@@ -455,7 +455,7 @@ and its biggest return values is returned.
455455
Defined As:
456456
457457
multi method minmax(--> List:D)
458-
multi method minmax(&by --> List:D)
458+
multi method minmax(&custom-routine-to-use --> List:D)
459459
460460
Returns a list containing the smallest and the biggest element. If a
461461
C<Callable> positional argument is provided each element is filtered and

0 commit comments

Comments
 (0)