Update perl6.html.markdown

typo, wrong sub name in comment : mod => x-store
This commit is contained in:
Philippe Bricout 2015-02-27 16:31:15 +01:00
parent a8592af4e8
commit 862d90da8f

View File

@ -201,7 +201,7 @@ sub mutate($n is rw) {
my $x = 42;
sub x-store() is rw { $x }
x-store() = 52; # in this case, the parentheses are mandatory
# (else Perl 6 thinks `mod` is an identifier)
# (else Perl 6 thinks `x-store` is an identifier)
say $x; #=> 52