1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-08-01 16:28:03 +08:00

docs(java-concurrent-question-03.md): fix typo

This commit is contained in:
uncle-lv 2025-07-21 21:40:34 +08:00
parent 4b34db7018
commit e5422aee95

View File

@ -688,7 +688,7 @@ public interface ReadWriteLock {
![](https://oss.javaguide.cn/github/javaguide/java/concurrent/reentrantreadwritelock-class-diagram.png)
`ReentrantReadWriteLock` 也支持公平锁和非公平锁,默认使用非公平锁,可以通过构造器来显示的指定。
`ReentrantReadWriteLock` 也支持公平锁和非公平锁,默认使用非公平锁,可以通过构造器来显式地指定。
```java
// 传入一个 boolean 值true 时为公平锁false 时为非公平锁