8000 Removed duplicated instead · lashchenko/scala.github.com@bac47fd · GitHub
[go: up one dir, main page]

Skip to content

Commit bac47fd

Browse files
committed
Removed duplicated instead
1 parent 69b5cf5 commit bac47fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/tour/_posts/2017-02-13-singleton-objects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ It's common to see typeclass instances as [implicit values](implicit-parameters.
5151

5252
## Notes for Java programmers ##
5353

54-
`static` is not a keyword in Scala. Instead, all members that would be static, including classes, should go in a singleton object instead. They can be referred to with the same syntax, imported piecemeal or as a group, and so on.
54+
`static` is not a keyword in Scala. Instead, all members that would be static, including classes, should go in a singleton object. They can be referred to with the same syntax, imported piecemeal or as a group, and so on.
5555

5656
Frequently, Java programmers define static members, perhaps `private`, as implementation aids for their instance members. These move to the companion, too; a common pattern is to import the companion object's members in the class, like so:
5757

0 commit comments

Comments
 (0)
0