Skip to content

Commit 84016d4

Browse files
authored
Merge pull request crossoverJie#85 from crossoverJie/fix
✏️ Fixing typos.
2 parents de43734 + 8d8cd86 commit 84016d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MD/collection/HashSet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
```
4040

4141
比较关键的就是这个 `add()` 方法。
42-
可以看出它是将存放的对象当做了 `HashMap` 的健,`value` 都是相同的 `PRESENT` 。由于 `HashMap` 的 `key` 是不能重复的,所以每当有重复的值写入到 `HashSet` 时,`value` 会被覆盖,但 `key` 不会收到影响,这样就保证了 `HashSet` 中只能存放不重复的元素。
42+
可以看出它是将存放的对象当做了 `HashMap` 的健,`value` 都是相同的 `PRESENT` 。由于 `HashMap` 的 `key` 是不能重复的,所以每当有重复的值写入到 `HashSet` 时,`value` 会被覆盖,但 `key` 不会受到影响,这样就保证了 `HashSet` 中只能存放不重复的元素。
4343

4444
## 总结
4545

0 commit comments

Comments
 (0)