1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-13 18:24:39 +02:00

Merge pull request #3393 from myrdd/patch-1

[perl6/en] [fix] $n -> $m
This commit is contained in:
Andre Polykanine
2018-11-15 22:02:02 +02:00
committed by GitHub

View File

@@ -246,7 +246,7 @@ sub mutate($n is rw) {
}
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
## to just pass a number instead of passing a variable it won't work because