diff --git a/docs/chapter_hashing/hash_collision.md b/docs/chapter_hashing/hash_collision.md index b42a8817c..7ae3a6453 100644 --- a/docs/chapter_hashing/hash_collision.md +++ b/docs/chapter_hashing/hash_collision.md @@ -2174,7 +2174,7 @@ comments: true // 若遇到指定 key ,则返回对应 val if ( this.#buckets[j].key === key && - this.#buckets[j][key] !== this.#removed.key + this.#buckets[j].key !== this.#removed.key ) return this.#buckets[j].val; } @@ -2195,7 +2195,7 @@ comments: true // 若遇到空桶、或带有删除标记的桶,则将键值对放入该桶 if ( this.#buckets[j] === null || - this.#buckets[j][key] === this.#removed.key + this.#buckets[j].key === this.#removed.key ) { this.#buckets[j] = new Pair(key, val); this.#size += 1; @@ -2302,7 +2302,7 @@ comments: true // 若遇到指定 key ,则返回对应 val if ( this.#buckets[j].key === key && - this.#buckets[j][key] !== this.#removed.key + this.#buckets[j].key !== this.#removed.key ) return this.#buckets[j].val; } @@ -2323,7 +2323,7 @@ comments: true // 若遇到空桶、或带有删除标记的桶,则将键值对放入该桶 if ( this.#buckets[j] === null || - this.#buckets[j][key] === this.#removed.key + this.#buckets[j].key === this.#removed.key ) { this.#buckets[j] = new Pair(key, val); this.#size += 1; diff --git a/docs/index.md b/docs/index.md index 0e040d068..14d8b9cd3 100644 --- a/docs/index.md +++ b/docs/index.md @@ -22,7 +22,7 @@ hide:   - GitHub contributors + GitHub contributors