Skip to content

Commit 377689c

Browse files
Small textual change for clarity.
Make more clear that the term "object" at the end of the sentence does not refer to the same "object" as in the beginnig of the sentence.
1 parent cee72ab commit 377689c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/stdlib/Objects.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ object Objects extends FlatSpec with Matchers with org.scalaexercises.definition
6969
Movie.academyAwardBestMoviesForYear(1932).get.name should be(res0)
7070
}
7171

72-
/** A companion object can also see private values and variables of the instantiated objects:
72+
/** A companion object can also see private values and variables of the corresponding classes' instantiated objects:
7373
*/
7474
def privateValuesObjects(res0: String, res1: String, res2: String, res3: String) {
7575
class Person(val name: String, private val superheroName: String) //The superhero name is private!

0 commit comments

Comments
 (0)