Skip to content

about_arrays has incorrect examples for section "Arrays of zero or one" #1933

Closed
@HumanEquivalentUnit

Description

@HumanEquivalentUnit

Issue Details

The section titled "ARRAYS OF ZERO OR ONE" has example code for the subsection "One object" which shows:

$a = 4
$a.Count
$a.Length
$a[0]
$a[-1]

0
0
4
4

I think this is not correct, and the output for that code should be:

1
1
4
4

Version(s) of document impacted

  • [x ] Impacts 6 document
  • [x ] Impacts 5.1 document
  • [x ] Impacts 5.0 document
  • [x ] Impacts 4.0 document
  • [x ] Impacts 3.0 document

Metadata

Metadata

Assignees

Labels

Pri2Priority - Medium

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions