Skip to content

Commit 60c0e7f

Browse files
committed
fix typo
1 parent 1fb82cc commit 60c0e7f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/crossoverjie/actual/TwoThreadNonBlocking.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
* non blocking 版
77
*
88
* @author twoyao
9-
* Date: 5/07/2018
9+
* Date: 05/07/2018
1010
* @since JDK 1.8
1111
*/
1212

1313
public class TwoThreadNonBlocking implements Runnable {
1414

1515
/**
1616
* 当flag为1时只有奇数线程可以执行,并将其置为0
17-
* 当flag为0是只有偶数线程可以执行,并将其置为1
17+
* 当flag为0时只有偶数线程可以执行,并将其置为1
1818
*/
1919
private volatile static int flag = 1;
2020

0 commit comments

Comments
 (0)