1
0
mirror of https://github.com/golang/go synced 2024-11-22 03:24:41 -07:00

doc: fix typo in Effective Go

Fixes #5329.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/8897044
This commit is contained in:
Andrew Gerrand 2013-04-22 16:57:23 +02:00
parent b0cd458605
commit 994c486aa9

View File

@ -3414,7 +3414,7 @@ func Compile(str string) (regexp *Regexp, err error) {
<p>
If <code>doParse</code> panics, the recovery block will set the
return value to <code>nil</code>&mdash;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 <code>err</code>, that the problem was a parse error by asserting
that it has the local type <code>Error</code>.
If it does not, the type assertion will fail, causing a run-time error