From 62f16cac997420172f8a7bfb82845880862273ac Mon Sep 17 00:00:00 2001 From: Joe Littlejohn Date: Sun, 17 May 2020 22:49:28 +0100 Subject: [PATCH] Update Enumerations.scala --- src/main/scala/stdlib/Enumerations.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/stdlib/Enumerations.scala b/src/main/scala/stdlib/Enumerations.scala index f211d1cc..28ab5dfe 100644 --- a/src/main/scala/stdlib/Enumerations.scala +++ b/src/main/scala/stdlib/Enumerations.scala @@ -26,7 +26,7 @@ object Enumerations extends AnyFlatSpec with Matchers with org.scalaexercises.de /** 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`. * - * `Value` assigns a numerical value to fields: + * `Value` assigns a numerical value to fields, indexed from 0: */ def createEnumerationEnumerations( res0: Int, @@ -149,7 +149,7 @@ object Enumerations extends AnyFlatSpec with Matchers with org.scalaexercises.de (GreekPlanets.Neptune == GreekPlanets.Jupiter) should be(res5) } - /** You can extend the `Enumeration` by extending the `Value` class. + /** You can extend the `Enumeration` by extending the `Val` class. */ def extendingValueEnumerations(res0: Double, res1: Double) = { object Planets extends Enumeration {