From 7584e9a8113e88d78c5452b49d5498954296718b Mon Sep 17 00:00:00 2001 From: Daniel Levenson Date: Mon, 28 Jan 2019 20:46:23 -0500 Subject: [PATCH] Clarify documentation of square root example Explicitly call out that that we're evaluating the square root of 2 in example of applying Newton's method. --- src/main/scala/scalatutorial/sections/FunctionalLoops.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/scalatutorial/sections/FunctionalLoops.scala b/src/main/scala/scalatutorial/sections/FunctionalLoops.scala index 77c9fb9c..a1fb0bdb 100644 --- a/src/main/scala/scalatutorial/sections/FunctionalLoops.scala +++ b/src/main/scala/scalatutorial/sections/FunctionalLoops.scala @@ -76,7 +76,7 @@ object FunctionalLoops extends ScalaTutorialSection { * - Start with an initial ''estimate'' `y` (let's pick `y = 1`). * - Repeatedly improve the estimate by taking the mean of `y` and `x/y`. * - * Example: + * Example: Evaluation of the square root of 2 (x = 2): * * {{{ * Estimation Quotient Mean