mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-26 16:53:10 +03:00
[fix] perl6: $n -> $m
This commit is contained in:
parent
76e5f436df
commit
677ab0252b
@ -246,7 +246,7 @@ sub mutate($n is rw) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
my $m = 42;
|
my $m = 42;
|
||||||
mutate $m; # $n is now 43 !
|
mutate $m; # $m is now 43 !
|
||||||
|
|
||||||
## This works because we are passing the container $m to mutate. If we try
|
## This works because we are passing the container $m to mutate. If we try
|
||||||
## to just pass a number instead of passing a variable it won't work because
|
## to just pass a number instead of passing a variable it won't work because
|
||||||
|
Loading…
Reference in New Issue
Block a user