Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix docs for VAR, arrays are not automatically items, _4d47++
  • Loading branch information
skids committed Aug 18, 2016
1 parent 367202a commit e231200
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/Language/mop.pod6
Expand Up @@ -103,10 +103,10 @@ Returns the underlying C<Scalar> object, if there is one.
The presence of a C<Scalar> object indicates that the object is "itemized".
.say for (1, 2, 3); # not itemized, so "1\n2\n3\n"
.say for [1, 2, 3]; # itemized, so "1 2 3\n"
say (1, 2, 3).VAR ~~ Scalar; # False
say [1, 2, 3].VAR ~~ Scalar; # True
.say for (1, 2, 3); # not itemized, so "1\n2\n3\n"
.say for $(1, 2, 3); # itemized, so "(1 2 3)\n"
say (1, 2, 3).VAR ~~ Scalar; # False
say $(1, 2, 3).VAR ~~ Scalar; # True
=head1 Structure of the meta object system
Expand Down

0 comments on commit e231200

Please sign in to comment.