Skip to content

Commit 231b7e8

Browse files
authored
Merge branch 'main' into add-sync-workflow
2 parents b76a630 + cf00071 commit 231b7e8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

concepts/datetime/about.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ These methods return a _new_ `LocalDate` instance and do not update the existing
4747
```java
4848
LocalDate date = LocalDate.of(2007, 12, 3);
4949

50-
date.addDays(3);
50+
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

concepts/datetime/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ These methods return a _new_ `LocalDate` instance and do not update the existing
4141
```java
4242
LocalDate date = LocalDate.of(2007, 12, 3);
4343

44-
date.addDays(3);
44+
date.plusDays(3);
4545
// => 2007-12-06
4646
```
4747

exercises/concept/booking-up-for-beauty/.docs/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ These methods return a _new_ `LocalDate` instance and do not update the existing
4343
```java
4444
LocalDate date = LocalDate.of(2007, 12, 3);
4545

46-
date.addDays(3);
46+
date.plusDays(3);
4747
// => 2007-12-06
4848
```
4949

0 commit comments

Comments
 (0)