From 4fb81451631e4bf5eaedac95cdc8eeb8c2c7a037 Mon Sep 17 00:00:00 2001 From: Willy David Jr Date: Sat, 10 Aug 2019 04:39:39 +0800 Subject: [PATCH] Corrected declaration of integer array. (#36575) To declare an integer array, the correct way is: int[] name = new int[] {1, 2, 3}; and not int[] name = new name[] {1, 2, 3}; --- guide/english/csharp/array/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/english/csharp/array/index.md b/guide/english/csharp/array/index.md index d3212356b3..0023e7d0f5 100644 --- a/guide/english/csharp/array/index.md +++ b/guide/english/csharp/array/index.md @@ -90,7 +90,7 @@ You can declare, initialize and assign values in the array all at once by using or simply: ```csharp -int [] nameOfArray = new nameOfArray[4] {2,9,56,1280}; +int [] nameOfArray = new int[4] {2,9,56,1280}; int [] nameOfSecondArray = nameOfArray; ```