Skip to content

Commit 06162f8

Browse files
authored
Options type error (Issue #13)
Problem Test in the options exercise throws an error because the test expects a Float instead of a Double from the user Solution Change type of argument to doube
1 parent 3144a4d commit 06162f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/stdlib/Options.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ object Options extends FlatSpec with Matchers with exercise.Section {
5656

5757
/** Option can also be used with pattern matching:
5858
*/
59-
def matchOptions(res0: Float, res1: Float) {
59+
def matchOptions(res0: Double, res1: Double) {
6060
val someValue: Option[Double] = Some(20.0)
6161
val value = someValue match {
6262
case Some(v) v

0 commit comments

Comments
 (0)