Skip to content

Commit 4d09760

Browse files
authored
Correct that Mix.Bag/BagHash .Ints not .rounds
Per today's changes[^1], the coercion now .Ints the weights instead of .round'ing [1] rakudo/rakudo@a09c8dc99e
1 parent 6bfa9b4 commit 4d09760

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/Type/Mix.pod6

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,19 @@ Defined as:
8282
8383
method Bag () returns Bag:D
8484
85-
Coerces the C<Mix> to a L«C<Bag>|/type/Bag». The weights are rounded to integers,
85+
Coerces the C<Mix> to a L«C<Bag>|/type/Bag». The weights are convert to L«C<Int>|/type/Int»,
8686
which means the number of keys in the resulting C<Bag> can be fewer than in the
87-
original C<Mix>, if any of the weights round off to zero.
87+
original C<Mix>, if any of the weights truncate to zero.
8888
8989
=head2 method BagHash
9090
9191
Defined as:
9292
9393
method BagHash () returns BagHash:D
9494
95-
Coerces the C<Mix> to a L«C<BagHash>|/type/BagHash». The weights are rounded to integers,
95+
Coerces the C<Mix> to a L«C<BagHash>|/type/BagHash». The weights are convert to L«C<Int>|/type/Int»,
9696
which means the number of keys in the resulting C<BagHash> can be fewer than in the
97-
original C<Mix>, if any of the weights round off to zero.
97+
original C<Mix>, if any of the weights truncate to zero.
9898
9999
=head1 See Also
100100

0 commit comments

Comments
 (0)