From f00872527b9e31cf3389ef49788b21b22b1a51da Mon Sep 17 00:00:00 2001 From: Stefan Nilsson Date: Thu, 15 Mar 2012 09:15:16 +1100 Subject: [PATCH] doc: add reference to FAQ to explain warning about concrete type R=golang-dev, adg CC=golang-dev https://golang.org/cl/5820048 --- doc/articles/error_handling.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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.)

-- 2.50.0