]> Cypherpunks repositories - gostls13.git/commitdiff
doc: fix typo in Effective Go
authorAndrew Gerrand <adg@golang.org>
Mon, 22 Apr 2013 14:57:23 +0000 (16:57 +0200)
committerAndrew Gerrand <adg@golang.org>
Mon, 22 Apr 2013 14:57:23 +0000 (16:57 +0200)
Fixes #5329.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/8897044

doc/effective_go.html

index bdbef68c7cd2c7b97d3a3fbe384aa488a29d9643..62851871c5fa8662e9164c9c80c3ebdd1e4303fe 100644 (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