Typo in "Declare and set array element values" example #38712
Labels
doc-bug
Problem with the content; needs to be fixed [org][type][category]
dotnet-csharp/svc
good first issue
Issue should be good for first-time contributors, with clear instructions
help wanted
Good for community contributors to help [up-for-grabs]
in-pr
This issue will be closed (fixed) by an active pull request.
lang-reference/subsvc
okr-health
Content-health KR: Concerns article defects/freshness or build warnings.
Pri1
High priority, do before Pri2 and Pri3
📌 seQUESTered
Identifies that an issue has been imported into Quest.
Type of issue
Code doesn't work
Description
In the first code block example for "Declare and set array element values" there are square brackets instead of curly:
// Now
// Declare and set array element values.
int[] array2 = [1, 2, 3, 4, 5, 6];
// Should be
// Declare and set array element values.
int[] array2 = {1, 2, 3, 4, 5, 6};
[Enter feedback here]
Page URL
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/arrays
Content source URL
https://github.com/dotnet/docs/blob/main/docs/csharp/language-reference/builtin-types/arrays.md
Document Version Independent Id
38aea826-1f7b-049e-1b9e-d13eea138c44
Article author
@BillWagner
Metadata
Associated WorkItem - 255031
The text was updated successfully, but these errors were encountered: