summaryrefslogtreecommitdiff
path: root/doc/code.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/code.html')
-rw-r--r--doc/code.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/code.html b/doc/code.html
index f9aa6ac171..946585ccd8 100644
--- a/doc/code.html
+++ b/doc/code.html
@@ -296,7 +296,7 @@ package newmath
// Sqrt returns an approximation to the square root of x.
func Sqrt(x float64) float64 {
z := 1.0
- for i := 0; i < 1000; i++ {
+ for i := 0; i &lt; 1000; i++ {
z -= (z*z - x) / (2 * z)
}
return z