From 70f6133b840e33b61cfd4d19aa85d62493906dc7 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Sun, 31 Jul 2011 15:25:26 -0700 Subject: [PATCH] doc: fix typo in Effective Go Fixes #2120. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/4810061 --- doc/effective_go.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/effective_go.html b/doc/effective_go.html index 296939e0dfd..ab109280f6e 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -2730,7 +2730,7 @@ suppresses the usual check for a return statement.
 // A toy implementation of cube root using Newton's method.
 func CubeRoot(x float64) float64 {
-    z := x/3   // Arbitrary intitial value
+    z := x/3   // Arbitrary initial value
     for i := 0; i < 1e6; i++ {
         prevz := z
         z -= (z*z*z-x) / (3*z*z)