We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b81c24 commit 720f7c8Copy full SHA for 720f7c8
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(guess * guess - x) < 0.001
37
38
* sqrtIter(1.0, x)
39
* }
@@ -96,7 +96,7 @@ object LexicalScopes extends ScalaTutorialSection {
96
97
98
* def isGoodEnough(guess: Double) =
99
100
101
* sqrtIter(1.0)
102
0 commit comments