Skip to content

Commit e231200

Browse files
committed
Fix docs for VAR, arrays are not automatically items, _4d47++
1 parent 367202a commit e231200

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/Language/mop.pod6

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ Returns the underlying C<Scalar> object, if there is one.
103103
104104
The presence of a C<Scalar> object indicates that the object is "itemized".
105105
106-
.say for (1, 2, 3); # not itemized, so "1\n2\n3\n"
107-
.say for [1, 2, 3]; # itemized, so "1 2 3\n"
108-
say (1, 2, 3).VAR ~~ Scalar; # False
109-
say [1, 2, 3].VAR ~~ Scalar; # True
106+
.say for (1, 2, 3); # not itemized, so "1\n2\n3\n"
107+
.say for $(1, 2, 3); # itemized, so "(1 2 3)\n"
108+
say (1, 2, 3).VAR ~~ Scalar; # False
109+
say $(1, 2, 3).VAR ~~ Scalar; # True
110110
111111
=head1 Structure of the meta object system
112112

0 commit comments

Comments
 (0)