From 7d3de70754b1834edd59201635bfd0f6d175d837 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Fri, 16 Nov 2018 19:09:59 +0300 Subject: [PATCH] Correct replacement for js Math.log The correspondent kotlin.math function is ln(x) #KT-28251 Fixed --- libraries/stdlib/js/src/kotlin/js.math.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/stdlib/js/src/kotlin/js.math.kt b/libraries/stdlib/js/src/kotlin/js.math.kt index cf7f76972a6..5184df6172e 100644 --- a/libraries/stdlib/js/src/kotlin/js.math.kt +++ b/libraries/stdlib/js/src/kotlin/js.math.kt @@ -46,7 +46,7 @@ public external object Math { public fun sqrt(value: Double): Double @Deprecated("Use kotlin.math.tan instead.", ReplaceWith("tan(value)", "kotlin.math.tan"), level = DeprecationLevel.ERROR) public fun tan(value: Double): Double - @Deprecated("Use kotlin.math.log instead.", ReplaceWith("log(value)", "kotlin.math.log"), level = DeprecationLevel.ERROR) + @Deprecated("Use kotlin.math.ln instead.", ReplaceWith("ln(value)", "kotlin.math.ln"), level = DeprecationLevel.ERROR) public fun log(value: Double): Double @Deprecated("Use kotlin.math.pow instead.", ReplaceWith("pow(base, exp)", "kotlin.math.pow"), level = DeprecationLevel.ERROR) public fun pow(base: Double, exp: Double): Double