From: Stefan Nilsson Date: Wed, 14 Mar 2012 22:15:16 +0000 (+1100) Subject: doc: add reference to FAQ to explain warning about concrete type X-Git-Tag: weekly.2012-03-22~89 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f00872527b9e31cf3389ef49788b21b22b1a51da;p=gostls13.git doc: add reference to FAQ to explain warning about concrete type R=golang-dev, adg CC=golang-dev https://golang.org/cl/5820048 --- diff --git a/doc/articles/error_handling.html b/doc/articles/error_handling.html index b66033cb74..8f4fffb482 100644 --- a/doc/articles/error_handling.html +++ b/doc/articles/error_handling.html @@ -258,8 +258,9 @@ Next we modify the appHandler type to return *appError values:

(It's usually a mistake to pass back the concrete type of an error rather than -error, for reasons to be discussed in another article, but -it's the right thing to do here because ServeHTTP is the only +error, +for reasons discussed in the Go FAQ, +but it's the right thing to do here because ServeHTTP is the only place that sees the value and uses its contents.)