1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-07 07:16:42 +02:00

Merge pull request #977 from brxfork/patch-1

Update perl6.html.markdown
This commit is contained in:
Levi Bostian
2015-02-28 13:26:44 -06:00

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