mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-01 04:20:39 +02:00
Update perl6.html.markdown
typo, wrong sub name in comment : mod => x-store
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user