Update array.md

fix:go初始化数组
This commit is contained in:
Chao. Hu 2023-01-05 16:25:40 +08:00 committed by GitHub
parent fd3eaaf3fd
commit 3b5fccba39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,8 +44,8 @@ comments: true
```go title="array.go"
/* 初始化数组 */
var arr []int
nums := []int{1, 3, 2, 5, 4}
var arr [5]int
nums := [5]int{1, 3, 2, 5, 4}
```
=== "JavaScript"