]> Cypherpunks repositories - gostls13.git/commitdiff
doc: fix another typo in article on defer, panic and recover
authorFrancisco Souza <franciscossouza@gmail.com>
Sun, 4 Mar 2012 03:40:14 +0000 (14:40 +1100)
committerAndrew Gerrand <adg@golang.org>
Sun, 4 Mar 2012 03:40:14 +0000 (14:40 +1100)
Fixes #3177

R=adg
CC=golang-dev
https://golang.org/cl/5728057

doc/articles/defer_panic_recover.html
doc/articles/defer_panic_recover.tmpl

index 9798bedef258e0689d82db545bcdb22dd000bc64..be97045dd93e3eb0373401528a0ad034b354c59a 100644 (file)
@@ -236,7 +236,7 @@ panic PC=0x2a9cd8
 For a real-world example of <b>panic</b> and <b>recover</b>, see the
 <a href="/pkg/encoding/json/">json package</a> from the Go standard library.
 It decodes JSON-encoded data with a set of recursive functions.
-When malformed JSON is encountered, the parser calls panic is to unwind the
+When malformed JSON is encountered, the parser calls panic to unwind the
 stack to the top-level function call, which recovers from the panic and returns
 an appropriate error value (see the 'error' and 'unmarshal' functions in
 <a href="/src/pkg/encoding/json/decode.go">decode.go</a>).
index d2ca7ae2cf3f7e208c95cb38d63cee4c8685621a..5f48c6ef48246cc34eab5312507cec8b64a770e5 100644 (file)
@@ -157,7 +157,7 @@ panic PC=0x2a9cd8
 For a real-world example of <b>panic</b> and <b>recover</b>, see the
 <a href="/pkg/encoding/json/">json package</a> from the Go standard library.
 It decodes JSON-encoded data with a set of recursive functions.
-When malformed JSON is encountered, the parser calls panic is to unwind the
+When malformed JSON is encountered, the parser calls panic to unwind the
 stack to the top-level function call, which recovers from the panic and returns
 an appropriate error value (see the 'error' and 'unmarshal' functions in
 <a href="/src/pkg/encoding/json/decode.go">decode.go</a>).