From: Francisco Souza Date: Sun, 4 Mar 2012 03:40:14 +0000 (+1100) Subject: doc: fix another typo in article on defer, panic and recover X-Git-Tag: weekly.2012-03-04~12 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=54875a7a7f64ed3ae2f4d3b66f9de4b3c30c3a22;p=gostls13.git doc: fix another typo in article on defer, panic and recover Fixes #3177 R=adg CC=golang-dev https://golang.org/cl/5728057 --- diff --git a/doc/articles/defer_panic_recover.html b/doc/articles/defer_panic_recover.html index 9798bedef2..be97045dd9 100644 --- a/doc/articles/defer_panic_recover.html +++ b/doc/articles/defer_panic_recover.html @@ -236,7 +236,7 @@ panic PC=0x2a9cd8 For a real-world example of panic and recover, see the json package 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 decode.go). diff --git a/doc/articles/defer_panic_recover.tmpl b/doc/articles/defer_panic_recover.tmpl index d2ca7ae2cf..5f48c6ef48 100644 --- a/doc/articles/defer_panic_recover.tmpl +++ b/doc/articles/defer_panic_recover.tmpl @@ -157,7 +157,7 @@ panic PC=0x2a9cd8 For a real-world example of panic and recover, see the json package 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 decode.go).