Skip to content

Commit 1d391aa

Browse files
committed
#37 Typo in one of the return types for toFloat
1 parent f7539ad commit 1d391aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jvm/src/main/scala-2.10/scalajson.ast/unsafe/JValue.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ final case class JNumber(value: String) extends JValue {
8585

8686
def toDouble: Double = scalajson.ast.toDouble(value)
8787

88-
def toFloat: Double = scalajson.ast.toFloat(value)
88+
def toFloat: Float = scalajson.ast.toFloat(value)
8989

9090
def toBigDecimal: Option[BigDecimal] = scalajson.ast.toBigDecimal(value)
9191
}

0 commit comments

Comments
 (0)