mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Perl6, minor change in comments
It seems "when" should be replace by "given" at the end of the comment.
This commit is contained in:
parent
733eced1ba
commit
cd462d1cc5
@ -283,7 +283,7 @@ for @array -> $variable {
|
||||
}
|
||||
|
||||
# As we saw with given, for's default "current iteration" variable is `$_`.
|
||||
# That means you can use `when` in a `for` just like you were in a when.
|
||||
# That means you can use `when` in a `for` just like you were in a `given`.
|
||||
for @array {
|
||||
say "I've got $_";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user