Update JavaScript style (Chapter of Hashing)

This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
justin
2022-12-26 23:45:23 +08:00
gitea-unlock(16/)
parent 650872cb05
commit 60c715b041
octicon-diff(16/tw-mr-1) 2 changed files with 2 additions and 2 deletions

2
codes/javascript/chapter_hashing/array_hash_map.js
View File

@@ -14,7 +14,7 @@ class Entry {
/* 基于数组简易实现的哈希表 */
class ArrayHashMap {
#bucket
#bucket;
constructor() {
// 初始化一个长度为 100 的桶(数组)
this.#bucket = new Array(100).fill(null);

2
docs/chapter_hashing/hash_map.md
View File

@@ -539,7 +539,7 @@ $$
/* 基于数组简易实现的哈希表 */
class ArrayHashMap {
#bucket
#bucket;
constructor() {
// 初始化一个长度为 100 的桶(数组)
this.#bucket = new Array(100).fill(null);