]> Cypherpunks repositories - gostls13.git/commitdiff
doc: add reference to FAQ to explain warning about concrete type
authorStefan Nilsson <snilsson@nada.kth.se>
Wed, 14 Mar 2012 22:15:16 +0000 (09:15 +1100)
committerAndrew Gerrand <adg@golang.org>
Wed, 14 Mar 2012 22:15:16 +0000 (09:15 +1100)
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5820048

doc/articles/error_handling.html

index b66033cb7411fa2e02345e9865e50a4c461b89db..8f4fffb4820c18312623eecf3ac467ce335d13f7 100644 (file)
@@ -258,8 +258,9 @@ Next we modify the appHandler type to return <code>*appError</code> values:
 
 <p>
 (It's usually a mistake to pass back the concrete type of an error rather than
-<code>error</code>, for reasons to be discussed in another article, but
-it's the right thing to do here because <code>ServeHTTP</code> is the only
+<code>error</code>,
+for reasons discussed in <a href="/doc/go_faq.html#nil_error">the Go FAQ</a>,
+but it's the right thing to do here because <code>ServeHTTP</code> is the only
 place that sees the value and uses its contents.)
 </p>