From d86cb0ee5d9548b692ceacb526dde2900093b43e Mon Sep 17 00:00:00 2001 From: Nepenthe <121146765+theNefelibatas@users.noreply.github.com> Date: Tue, 3 Oct 2023 00:13:44 +0800 Subject: [PATCH] Update array.md & hash_map.md (#827) * Update array.md - Update array.md - Add comments to maintain consistency with implementations in other languages. * Update hash_map.md - Update hash_map.md - Update the filename to correspond with the filenames in the "codes/go" directory. --- docs/chapter_array_and_linkedlist/array.md | 1 + docs/chapter_hashing/hash_map.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/chapter_array_and_linkedlist/array.md b/docs/chapter_array_and_linkedlist/array.md index 56ff8dca6..3dbe078f7 100755 --- a/docs/chapter_array_and_linkedlist/array.md +++ b/docs/chapter_array_and_linkedlist/array.md @@ -100,6 +100,7 @@ === "C" ```c title="array.c" + /* 初始化数组 */ int arr[5] = { 0 }; // { 0, 0, 0, 0, 0 } int nums[5] = { 1, 3, 2, 5, 4 }; ``` diff --git a/docs/chapter_hashing/hash_map.md b/docs/chapter_hashing/hash_map.md index 63ee3e347..e6f5cab56 100755 --- a/docs/chapter_hashing/hash_map.md +++ b/docs/chapter_hashing/hash_map.md @@ -120,7 +120,7 @@ === "Go" - ```go title="hash_map.go" + ```go title="hash_map_test.go" /* 初始化哈希表 */ hmap := make(map[int]string)