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.
1 parent 4b81c24 commit fef9e91Copy full SHA for fef9e91
src/main/scala/scalatutorial/sections/LexicalScopes.scala
@@ -33,7 +33,7 @@ object LexicalScopes extends ScalaTutorialSection {
33
* (guess + x / guess) / 2
34
*
35
* def isGoodEnough(guess: Double, x: Double) =
36
- * abs(square(guess) - x) < 0.001
+ * math.abs(math.pow(guess, 2) - x) < 0.001
37
38
* sqrtIter(1.0, x)
39
* }
0 commit comments