diff options
-rw-r--r-- | 07-classes-and-objects.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/07-classes-and-objects.md b/07-classes-and-objects.md index 4bf7e55107..959f482f0e 100644 --- a/07-classes-and-objects.md +++ b/07-classes-and-objects.md @@ -1123,7 +1123,7 @@ lazy val $m$ = new $sc$ with $mt_1$ with $\ldots$ with $mt_n$ { this: $m.type$ = ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Note that the value defined by an object definition is instantiated -lazily. The `new $m\Dollar$cls` constructor is evaluated +lazily. The `new $m$\$cls` constructor is evaluated not at the point of the object definition, but is instead evaluated the first time $m$ is dereferenced during execution of the program (which might be never at all). An attempt to dereference $m$ again in |