Skip to content

Commit 0af6c51

Browse files
authored
Merge pull request #1230 from rain7fine11/patch-6
trim
2 parents 02fdc54 + c8a6761 commit 0af6c51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/java/new-features/java8-common-new-features.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ public void getDayNew() {
934934
//当年最后一天
935935
LocalDate lastday = today.with(TemporalAdjusters.lastDayOfYear());
936936
//2021年最后一个周日,如果用Calendar是不得烦死。
937-
LocalDate lastMondayOf2021 = LocalDate.parse("2021-12- 31").with(TemporalAdjusters.lastInMonth(DayOfWeek.SUNDAY));
937+
LocalDate lastMondayOf2021 = LocalDate.parse("2021-12-31").with(TemporalAdjusters.lastInMonth(DayOfWeek.SUNDAY));
938938
}
939939
```
940940

0 commit comments

Comments
 (0)