Skip to content

Commit

Permalink
Merge pull request #14 from idarlington/patch-1
Browse files Browse the repository at this point in the history
Options type error (Issue #13)
  • Loading branch information
raulraja authored Jun 17, 2016
2 parents 3144a4d + 8da6442 commit 97851f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/stdlib/Options.scala
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ object Options extends FlatSpec with Matchers with exercise.Section {

/** Option can also be used with pattern matching:
*/
def matchOptions(res0: Float, res1: Float) {
def matchOptions(res0: Double, res1: Double) {
val someValue: Option[Double] = Some(20.0)
val value = someValue match {
case Some(v) v
Expand Down
2 changes: 1 addition & 1 deletion src/test/scala/exercises/stdlib/OptionsSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class OptionsSpec extends Spec with Checkers {
check(
Test.testSuccess(
Options.matchOptions _,
20F :: 0F :: HNil
20D :: 0D :: HNil
)
)
}
Expand Down

0 comments on commit 97851f2

Please sign in to comment.