From: Andrew Gerrand Date: Sun, 31 Jul 2011 22:25:26 +0000 (-0700) Subject: doc: fix typo in Effective Go X-Git-Tag: weekly.2011-08-10~56 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=70f6133b840e33b61cfd4d19aa85d62493906dc7;p=gostls13.git doc: fix typo in Effective Go Fixes #2120. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/4810061 --- diff --git a/doc/effective_go.html b/doc/effective_go.html index 296939e0df..ab109280f6 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)