1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-06 14:56:54 +02:00

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; my $x = 42;
sub x-store() is rw { $x } sub x-store() is rw { $x }
x-store() = 52; # in this case, the parentheses are mandatory 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 say $x; #=> 52