Skip to content

Commit aa6ef69

Browse files
Fix typo, traitss -> traits
1 parent f728c57 commit aa6ef69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/AnyVal.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ package scala
3838
* User-defined value classes which avoid object allocation...
3939
*
4040
* - must have a single `val` parameter that is the underlying runtime representation.
41-
* - can define `def`s, but no `val`s, `var`s, or nested `traits`s, `class`es or `object`s.
41+
* - can define `def`s, but no `val`s, `var`s, or nested `trait`s, `class`es or `object`s.
4242
* - typically extend no other trait apart from `AnyVal`.
4343
* - cannot be used in type tests or pattern matching.
4444
* - may not override `equals` or `hashCode` methods.

0 commit comments

Comments
 (0)