Skip to content

Commit 34afe97

Browse files
committed
update docs
1 parent 41a9a08 commit 34afe97

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

compiler/src/dotty/tools/dotc/ast/DesugarEnums.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,8 @@ object DesugarEnums {
125125
/** A creation method for a value of enum type `E`, which is defined as follows:
126126
*
127127
* private def $new(_$ordinal: Int, $name: String) = new E with scala.runtime.EnumValue {
128-
* private[this] def $ordinal = _$ordinal // if deriving from jl.Enum
129-
* def ordinal = _$ordinal // if not deriving from jl.Enum
130-
* override def toString = $name
128+
* def ordinal = _$ordinal // if `E` does not derive from jl.Enum
129+
* override def toString = $name // if `E` does not derive from jl.Enum
131130
* $values.register(this)
132131
* }
133132
*/

0 commit comments

Comments
 (0)