Skip to content

Commit ac5a3b5

Browse files
authored
Merge pull request #2161 from rhysd/patch-1
Fix deprecation warning in scala-for-java-programmers.md
2 parents 2f70c7f + 72003cd commit ac5a3b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/tutorials/scala-for-java-programmers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ empty or point to an object of some type.
675675

676676
class Reference[T] {
677677
private var contents: T = _
678-
def set(value: T) { contents = value }
678+
def set(value: T): Unit = { contents = value }
679679
def get: T = contents
680680
}
681681

0 commit comments

Comments
 (0)