doc/code: update newmath.Sqrt test case to make sure test succeed
Fixes #3445.
R=golang-dev, rsc, mtj
CC=golang-dev
https://golang.org/cl/5975061
diff --git a/doc/code.html b/doc/code.html
index b29f72a..f2dfeeb 100644
--- a/doc/code.html
+++ b/doc/code.html
@@ -384,7 +384,7 @@
import "testing"
func TestSqrt(t *testing.T) {
- const in, out = 9, 3
+ const in, out = 4, 2
if x := Sqrt(in); x != out {
t.Errorf("Sqrt(%v) = %v, want %v", in, x, out)
}
@@ -397,7 +397,7 @@
<pre>
$ go test example/newmath
-ok example/newmath
+ok example/newmath 0.165s
</pre>
<p>