Skip to content

Commit fba598b

Browse files
authored
Update containers.pod6
Fixing the code example about custom containers. Without the "-rw" the code dies.
1 parent 45ef5e8 commit fba598b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/Language/containers.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ work with types in Perl 6.
400400
401401
sub lucky(::T $type) {
402402
my T $c-value; # closure variable
403-
return Proxy.new(
403+
return-rw Proxy.new(
404404
FETCH => method () { $c-value },
405405
STORE => method (T $new-value) {
406406
X::OutOfRange.new(what => 'number', got => '13', range => '-∞..12, 14..∞').throw

0 commit comments

Comments
 (0)