Skip to content

Commit 7ab45eb

Browse files
authored
Merge pull request #747 from krizalys/remove-duplicate-instead
Removed duplicated instead
2 parents 69b5cf5 + bac47fd commit 7ab45eb

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)