mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 15:43:58 +00:00
Fix a comment that indicates what "say @array" will print.
We assigned 6 to @array[1] a few lines before, so say @array will print "a 6 b", not "a 2 b".
This commit is contained in:
parent
4feb1f380a
commit
74533ea292
@ -64,7 +64,7 @@ say "Interpolate an array using [] : @array[]";
|
||||
|
||||
my @keys = 0, 2;
|
||||
@array[@keys] = @letters; # Assign using an array
|
||||
say @array; #=> a 2 b
|
||||
say @array; #=> a 6 b
|
||||
|
||||
# There are two more kinds of lists: Parcel and Arrays.
|
||||
# Parcels are immutable lists (you can't modify a list that's not assigned).
|
||||
|
Loading…
Reference in New Issue
Block a user