Skip to content

Commit

Permalink
Update doc domain-modeling-tools for Java method call (#3081)
Browse files Browse the repository at this point in the history
Add parentheses when calling `LocalDate.now` to get an instance of `LocalDate`.
  • Loading branch information
cuzfrog authored Nov 6, 2024
1 parent 6815bfe commit ec9081c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _overviews/scala3-book/domain-modeling-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ Those constructors can be called like this:

```scala
val s1 = new Student("Mary", "123")
val s2 = new Student("Mary", "123", LocalDate.now)
val s2 = new Student("Mary", "123", LocalDate.now())
val s3 = new Student("Mary", "123", 456)
```

Expand All @@ -383,7 +383,7 @@ val s3 = new Student("Mary", "123", 456)

```scala
val s1 = Student("Mary", "123")
val s2 = Student("Mary", "123", LocalDate.now)
val s2 = Student("Mary", "123", LocalDate.now())
val s3 = Student("Mary", "123", 456)
```

Expand Down

0 comments on commit ec9081c

Please sign in to comment.