Skip to content

Commit c657f9d

Browse files
Callum GibbonsCallum Gibbons
authored andcommitted
[SCALA-339] - Fixed typo
1 parent 561e7e8 commit c657f9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scala-core-modules/scala-core-10/src/main/scala/com/baeldung/scala/valsintraits/ValInTraitExamples.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ object ValInTraitExamples {
88
def printCurrentTime(): Unit
99
}
1010
object TimePrinterImpl extends CurrentTimePrinter {
11-
override def currentTime: LocalDateTime = LocalDateTime.now()
11+
override val currentTime: LocalDateTime = LocalDateTime.now()
1212
override def printCurrentTime(): Unit = println(currentTime)
1313
}
1414

0 commit comments

Comments
 (0)