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

Merge pull request #2696 from uncle-lv/fix-typo

docs(java-concurrent-question-03.md): fix typo
This commit is contained in:
Guide 2025-07-27 11:25:15 +08:00 committed by GitHub
commit aff05c9a98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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