We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3144a4d + 8da6442 commit 97851f2Copy full SHA for 97851f2
src/main/scala/stdlib/Options.scala
@@ -56,7 +56,7 @@ object Options extends FlatSpec with Matchers with exercise.Section {
56
57
/** Option can also be used with pattern matching:
58
*/
59
- def matchOptions(res0: Float, res1: Float) {
+ def matchOptions(res0: Double, res1: Double) {
60
val someValue: Option[Double] = Some(20.0)
61
val value = someValue match {
62
case Some(v) ⇒ v
src/test/scala/exercises/stdlib/OptionsSpec.scala
@@ -42,7 +42,7 @@ class OptionsSpec extends Spec with Checkers {
42
check(
43
Test.testSuccess(
44
Options.matchOptions _,
45
- 20F :: 0F :: HNil
+ 20D :: 0D :: HNil
46
)
47
48
}
0 commit comments