Skip to content

Commit aaff774

Browse files
Callum GibbonsCallum Gibbons
Callum Gibbons
authored and
Callum Gibbons
committed
[SCALA-339] - Fixed second typo
1 parent c657f9d commit aaff774

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ object ValInTraitExamples {
1717
def printCurrentTime(): Unit
1818
}
1919
object TimePrinterWithDefImpl extends CurrentTimePrinterWithDef {
20-
override var currentTime: LocalDateTime = LocalDateTime.now()
20+
override def currentTime: LocalDateTime = LocalDateTime.now()
2121
override def printCurrentTime(): Unit = println(currentTime)
2222
}
2323

0 commit comments

Comments
 (0)