Skip to content

Commit fe570ad

Browse files
authored
Correct that MixHash.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 4d09760 commit fe570ad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/Type/MixHash.pod6

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,19 +86,19 @@ Defined as:
8686
8787
method Bag () returns Bag:D
8888
89-
Coerces the C<MixHash> to a L«C<Bag>|/type/Bag». The weights are rounded to integers,
89+
Coerces the C<MixHash> to a L«C<Bag>|/type/Bag». The weights are convert to L«C<Int>|/type/Int»,
9090
which means the number of keys in the resulting C<Bag> can be fewer than in the
91-
original C<MixHash>, if any of the weights round off to zero.
91+
original C<MixHash>, if any of the weights truncate to zero.
9292
9393
=head2 method BagHash
9494
9595
Defined as:
9696
9797
method BagHash () returns BagHash:D
9898
99-
Coerces the C<MixHash> to a L«C<BagHash>|/type/BagHash». The weights are rounded to integers,
99+
Coerces the C<MixHash> to a L«C<BagHash>|/type/BagHash». The weights are convert to L«C<Int>|/type/Int»,
100100
which means the number of keys in the resulting C<BagHash> can be fewer than in the
101-
original C<MixHash>, if any of the weights round off to zero.
101+
original C<MixHash>, if any of the weights truncate to zero.
102102
103103
=head1 See Also
104104

0 commit comments

Comments
 (0)