Fixed wrong parameter of Hash Map Set

This commit is contained in:
danielsss
2022-12-27 16:52:19 +11:00
parent 4e95997386
commit eaa48b6b9f

View File

@ -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);
}
/* 删除操作 */