Skip to content

Commit 6343e91

Browse files
committed
Align and move left
1 parent 14bf9b7 commit 6343e91

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

doc/Language/variables.pod6

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,18 +130,18 @@ explicitly put in list-context by surrounding parentheses C<( )>:
130130
Assignment to a List container (list-context) always triggers list assignment:
131131
132132
my @e;
133-
@e = 7,8,9; # list assignment to Array
134-
say @e; # OUTPUT: «[7,8,9]␤»
133+
@e = 7,8,9; # list assignment to Array
134+
say @e; # OUTPUT: «[7,8,9]␤»
135135
136136
my $f;
137-
($f,) = 7,8,9; # list assignment to List with one element
138-
say $f; # OUTPUT: «7␤»
139-
say ( ($f,) ).VAR.^name; # OUTPUT: «List␤»
137+
($f,) = 7,8,9; # list assignment to List with one element
138+
say $f; # OUTPUT: «7␤»
139+
say ( ($f,) ).VAR.^name; # OUTPUT: «List␤»
140140
141141
# ATTENTION: special declaration syntax!
142-
my ($g) = 7,8,9; # list assignment to List with one element
143-
say $g; # OUTPUT: «7␤»
144-
say ( ($g) ).VAR.^name # OUTPUT: «List␤»
142+
my ($g) = 7,8,9; # list assignment to List with one element
143+
say $g; # OUTPUT: «7␤»
144+
say ( ($g) ).VAR.^name # OUTPUT: «List␤»
145145
146146
The last two examples above are simple I<destructuring assignments> that select
147147
the first item of the right-hand side list. See for a more elaborate discussion

0 commit comments

Comments
 (0)