summaryrefslogtreecommitdiff
path: root/doc/code.html
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2013-10-12 18:40:41 -0400
committerShenghou Ma <minux.ma@gmail.com>2013-10-12 18:40:41 -0400
commit26f43a089e9d77cdb8c7c7f2c600631283de91f2 (patch)
tree18f28381bc46ffa11179013afa099b27ecec56f8 /doc/code.html
parent7f168f9ccf716183ea849f6d86250aecd5d4d0b4 (diff)
downloadgo-git-26f43a089e9d77cdb8c7c7f2c600631283de91f2.tar.gz
doc: fix small HTML problems
R=golang-dev, dave CC=golang-dev https://golang.org/cl/14629043
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