Skip to content

Commit 058fc44

Browse files
committed
s/Failure/undefined/ for decrement on sets/bags
1 parent ec4ff99 commit 058fc44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

S02-bits.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1695,7 +1695,7 @@ use the C<Hash> interface and increment an element of a C<BagHash>
16951695
its value is increased by one (creating the element if it doesn't exist
16961696
already). If you decrement the element the value is decreased by one;
16971697
if the value goes to 0 the element is automatically deleted. An attempt
1698-
to decrement a non-existing value returns a C<Failure> value. When not
1698+
to decrement a non-existing value returns an undefined value. When not
16991699
used as a C<Hash> (that is, when used as an C<Array> or list or C<Bag>
17001700
object) a C<BagHash> behaves as a C<Bag> of its keys, with each key
17011701
replicated the number of times specified by its corresponding value.

0 commit comments

Comments
 (0)