Fixed wrong parameter of Hash Map Set
This commit is contained in:
parent
4e95997386
commit
eaa48b6b9f
@ -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);
|
||||
}
|
||||
|
||||
/* 删除操作 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user