Modified:
docs/Perl6/Spec/S32-setting-library/Containers.pod
Log:
s/:repl/:replace/
Modified: docs/Perl6/Spec/S32-setting-library/Containers.pod
===================================================================
--- docs/Perl6/Spec/S32-setting-library/Containers.pod 2009-11-06 13:52:08 UTC (rev 29001)
+++ docs/Perl6/Spec/S32-setting-library/Containers.pod 2009-11-06 14:55:58 UTC (rev 29002)
@@ -201,7 +201,7 @@
C<pick> takes a list or array of values and returns a random
selection of elements from the list (without replacement unless
-C<:repl> is indicated). When selecting without replacement if C<*>
+C<:replace> is indicated). When selecting without replacement if C<*>
is specified as the number (or if the number of elements in
the list is less than the specified number), all the available
elements are returned in random order:
@@ -213,8 +213,8 @@
are provided. In this case C<*> would provide an infinite list
of random picks from C<@values>:
- @byte = (0,1).pick(8, :repl);
- for (1..20).pick(*, :repl) -> $die_roll { ... }
+ @byte = (0,1).pick(8, :replace);
+ for (1..20).pick(*, :replace) -> $die_roll { ... }
Due to the normal semantics of returning a C<Parcel>, a pick of a
single element may be used as an item without requiring C<.[0]>.