Skip to content

Commit 541827b

Browse files
committed
Fix addMonths and addYears to plusMonths and plusYears in datetime concept
1 parent c647134 commit 541827b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

concepts/datetime/about.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ LocalDate date = LocalDate.of(2007, 12, 3);
5050
date.plusDays(3);
5151
// => 2007-12-06
5252

53-
date.addMonths(1);
53+
date.plusMonths(1);
5454
// => 2008-01-03
5555

56-
date.addYears(1);
56+
date.plusYears(1);
5757
// => 2008-12-03
5858
```
5959

0 commit comments

Comments
 (0)