Skip to content

Commit 64cd9b9

Browse files
dleve123AdrianRaFo
authored andcommitted
Clarify documentation of square root example (#51)
Explicitly call out that that we're evaluating the square root of 2 in example of applying Newton's method.
1 parent 68ecad8 commit 64cd9b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/scalatutorial/sections/FunctionalLoops.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ object FunctionalLoops extends ScalaTutorialSection {
7676
* - Start with an initial ''estimate'' `y` (let's pick `y = 1`).
7777
* - Repeatedly improve the estimate by taking the mean of `y` and `x/y`.
7878
*
79-
* Example:
79+
* Example: Evaluation of the square root of 2 (x = 2):
8080
*
8181
* {{{
8282
* Estimation Quotient Mean

0 commit comments

Comments
 (0)