Skip to content

Commit 62f16ca

Browse files
committed
Update Enumerations.scala
1 parent 8a3e8ff commit 62f16ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/stdlib/Enumerations.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ object Enumerations extends AnyFlatSpec with Matchers with org.scalaexercises.de
2626

2727
/** To create an enumeration, create an object that extends the abstract class `Enumeration`, and set a `val` variable to the method `Value`. This is a trick to give values to each `val`.
2828
*
29-
* `Value` assigns a numerical value to fields:
29+
* `Value` assigns a numerical value to fields, indexed from 0:
3030
*/
3131
def createEnumerationEnumerations(
3232
res0: Int,
@@ -149,7 +149,7 @@ object Enumerations extends AnyFlatSpec with Matchers with org.scalaexercises.de
149149
(GreekPlanets.Neptune == GreekPlanets.Jupiter) should be(res5)
150150
}
151151

152-
/** You can extend the `Enumeration` by extending the `Value` class.
152+
/** You can extend the `Enumeration` by extending the `Val` class.
153153
*/
154154
def extendingValueEnumerations(res0: Double, res1: Double) = {
155155
object Planets extends Enumeration {

0 commit comments

Comments
 (0)