Skip to content

Commit 3cef368

Browse files
committed
fix example
1 parent cdc953a commit 3cef368

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

doc/Language/operators.pod6

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,9 @@ The name of the routine is formed of
102102
the operator category, then a colon, and a list quote construct with the
103103
symbol(s) that make up the operator:
104104
105-
=begin code :skip-test
106-
infix:<+>(1, 2); # same as 1 + 2
107-
circumfix:«( )»('a', 'b', 'c'); # same as ('a', 'b', 'c')
108-
=end code
105+
infix:<+>(1, 2); # same as 1 + 2
106+
my @a = <a b c>;
107+
circumfix:«[ ]»(@a); # same as @a[]
109108
110109
As a special case, a I<listop> (list operator) can stand either as a
111110
term or as a prefix. Subroutine calls are the most common listops. Other

0 commit comments

Comments
 (0)