From 994c486aa93a443a6cd32a4caa0884b2129392d5 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Mon, 22 Apr 2013 16:57:23 +0200 Subject: [PATCH] doc: fix typo in Effective Go Fixes #5329. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/8897044 --- doc/effective_go.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/effective_go.html b/doc/effective_go.html index bdbef68c7c..62851871c5 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -3414,7 +3414,7 @@ func Compile(str string) (regexp *Regexp, err error) {

If doParse panics, the recovery block will set the return value to nil—deferred functions can modify -named return values. It then will then check, in the assignment +named return values. It will then check, in the assignment to err, that the problem was a parse error by asserting that it has the local type Error. If it does not, the type assertion will fail, causing a run-time error -- 2.50.0