Skip to content

Commit f874fe3

Browse files
authored
Relax it's private
1 parent 5152494 commit f874fe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_tour/classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class Point {
8686
if (newValue < bound) _y = newValue else printWarning()
8787
}
8888

89-
private def printWarning(): Unit = println("WARNING: Out of bounds")
89+
private def printWarning() = println("WARNING: Out of bounds")
9090
}
9191

9292
val point1 = new Point

0 commit comments

Comments
 (0)