summaryrefslogtreecommitdiff
path: root/doc/code.html
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@debian.org>2013-12-03 09:43:15 +0100
committerMichael Stapelberg <stapelberg@debian.org>2013-12-03 09:43:15 +0100
commit64d2a7c8945ba05af859901f5e248f1befdd8621 (patch)
tree013fcb7e9e3296ecdda876012252c36bd6bcb063 /doc/code.html
parentb901efe83e212f0c34c769c079e41373da12d723 (diff)
downloadgolang-64d2a7c8945ba05af859901f5e248f1befdd8621.tar.gz
Imported Upstream version 1.2upstream/1.2
Diffstat (limited to 'doc/code.html')
-rw-r--r--doc/code.html34
1 files changed, 29 insertions, 5 deletions
diff --git a/doc/code.html b/doc/code.html
index f64dd6a2a..0abe6ac74 100644
--- a/doc/code.html
+++ b/doc/code.html
@@ -295,9 +295,9 @@ package newmath
// Sqrt returns an approximation to the square root of x.
func Sqrt(x float64) float64 {
- z := 0.0
- for i := 0; i < 1000; i++ {
- z -= (z*z - x) / (2 * x)
+ z := 1.0
+ for i := 0; i &lt; 1000; i++ {
+ z -= (z*z - x) / (2 * z)
}
return z
}
@@ -576,11 +576,17 @@ provide lists of external Go projects.
<p>
For more information on using remote repositories with the <code>go</code> tool, see
-<code><a href="/cmd/go/#hdr-Remote_import_path_syntax">go help remote</a></code>.
+<code><a href="/cmd/go/#hdr-Remote_import_paths">go help importpath</a></code>.
</p>
-<h2 id="more">Further reading</h2>
+<h2 id="next">What's next</h2>
+
+<p>
+Subscribe to the
+<a href="http://groups.google.com/group/golang-announce">golang-announce</a>
+mailing list to be notified when a new stable version of Go is released.
+</p>
<p>
See <a href="/doc/effective_go.html">Effective Go</a> for tips on writing
@@ -596,3 +602,21 @@ proper.
Visit the <a href="/doc/#articles">documentation page</a> for a set of in-depth
articles about the Go language and its libraries and tools.
</p>
+
+
+<h2 id="help">Getting help</h2>
+
+<p>
+For real-time help, ask the helpful gophers in <code>#go-nuts</code> on the
+<a href="http://freenode.net/">Freenode</a> IRC server.
+</p>
+
+<p>
+The official mailing list for discussion of the Go language is
+<a href="http://groups.google.com/group/golang-nuts">Go Nuts</a>.
+</p>
+
+<p>
+Report bugs using the
+<a href="http://code.google.com/p/go/issues/list">Go issue tracker</a>.
+</p>