diff --git a/docs/chapter_array_and_linkedlist/list.md b/docs/chapter_array_and_linkedlist/list.md index 77c48d5af..0bf089993 100755 --- a/docs/chapter_array_and_linkedlist/list.md +++ b/docs/chapter_array_and_linkedlist/list.md @@ -65,7 +65,7 @@ ```go title="list_test.go" /* 初始化列表 */ // 无初始值 - nums1 := []int + nums1 := []int{} // 有初始值 nums := []int{1, 3, 2, 5, 4} ```