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
No known key found for this signature in database
GPG key ID: 2A5967D8F31A22D2

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