mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 15:24:09 +03:00
Update perl6.html.markdown
typo, wrong sub name in comment : mod => x-store
This commit is contained in:
parent
a8592af4e8
commit
862d90da8f
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user