We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9a63450 + e6e8be1 commit 6eddf80Copy full SHA for 6eddf80
_overviews/core/value-classes.md
@@ -22,7 +22,7 @@ The following shows a very minimal value class definition:
22
23
It has a single, public `val` parameter that is the underlying runtime representation.
24
The type at compile time is `Wrapper`, but at runtime, the representation is an `Int`.
25
-A value class can define `def`s, but no `val`s, `var`s, or nested `traits`s, `class`es or `object`s:
+A value class can define `def`s, but no `val`s, `var`s, or nested `trait`s, `class`es or `object`s:
26
27
class Wrapper(val underlying: Int) extends AnyVal {
28
def foo: Wrapper = new Wrapper(underlying * 19)
0 commit comments