mirror of
				https://github.com/krahets/hello-algo.git
				synced 2025-11-04 22:28:40 +08:00 
			
		
		
		
	fix(csharp): unified array statement (#1011)
This commit is contained in:
		@ -42,7 +42,7 @@ There are two ways to initialize arrays depending on the requirements: without i
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    ```csharp title="array.cs"
 | 
					    ```csharp title="array.cs"
 | 
				
			||||||
    /* Initialize array */
 | 
					    /* Initialize array */
 | 
				
			||||||
    int[] arr = new int[5]; // { 0, 0, 0, 0, 0 }
 | 
					    int[] arr = new int[5]; // [ 0, 0, 0, 0, 0 ]
 | 
				
			||||||
    int[] nums = [1, 3, 2, 5, 4];
 | 
					    int[] nums = [1, 3, 2, 5, 4];
 | 
				
			||||||
    ```
 | 
					    ```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -42,7 +42,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    ```csharp title="array.cs"
 | 
					    ```csharp title="array.cs"
 | 
				
			||||||
    /* 初始化数组 */
 | 
					    /* 初始化数组 */
 | 
				
			||||||
    int[] arr = new int[5]; // { 0, 0, 0, 0, 0 }
 | 
					    int[] arr = new int[5]; // [ 0, 0, 0, 0, 0 ]
 | 
				
			||||||
    int[] nums = [1, 3, 2, 5, 4];
 | 
					    int[] nums = [1, 3, 2, 5, 4];
 | 
				
			||||||
    ```
 | 
					    ```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user