mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-13 18:00:18 +08:00
build
This commit is contained in:
@@ -69,7 +69,7 @@ comments: true
|
||||
```go title="list_test.go"
|
||||
/* 初始化列表 */
|
||||
// 无初始值
|
||||
nums1 := []int
|
||||
nums1 := []int{}
|
||||
// 有初始值
|
||||
nums := []int{1, 3, 2, 5, 4}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user