Skip to content

Commit b93aca3

Browse files
authored
make searchable
1 parent 76d9da6 commit b93aca3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/Language/operators.pod6

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,18 +165,18 @@ assignment operator to assign the replacement to the match part.
165165
166166
Infix operators can be combined with the assignment operator to modify a
167167
value and apply the result to a container in one go. Containers will be
168-
autovivified if possible.
168+
autovivified if possible. Some examples:
169169
170170
my $a = 32;
171-
$a += 10; # 42
172-
$a -= 2; # 40
171+
$a X<+=> 10; # 42
172+
$a x<-=> 2; # 40
173173
174174
$a = 3;
175175
$a min= 5; # still 3
176176
$a min= 2; # 2
177177
178178
my $s = 'a';
179-
$s ~= 'b'; # 'ab'
179+
$s x<~=> 'b'; # 'ab'
180180
181181
This behavior is automatically extended to include custom-defined infix operators.
182182

0 commit comments

Comments
 (0)