From eaa48b6b9f2865c78551c1d865b66147248534ae Mon Sep 17 00:00:00 2001 From: danielsss Date: Tue, 27 Dec 2022 16:52:19 +1100 Subject: [PATCH] Fixed wrong parameter of Hash Map Set --- docs/chapter_hashing/hash_map.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/chapter_hashing/hash_map.md b/docs/chapter_hashing/hash_map.md index 2e2e57263..d8244d80a 100644 --- a/docs/chapter_hashing/hash_map.md +++ b/docs/chapter_hashing/hash_map.md @@ -646,7 +646,7 @@ $$ /* 添加操作 */ public set(key: number, val: string) { let index = this.hashFunc(key); - this.bucket[index] = new Entry(index, val); + this.bucket[index] = new Entry(key, val); } /* 删除操作 */