From 54875a7a7f64ed3ae2f4d3b66f9de4b3c30c3a22 Mon Sep 17 00:00:00 2001 From: Francisco Souza Date: Sun, 4 Mar 2012 14:40:14 +1100 Subject: [PATCH] doc: fix another typo in article on defer, panic and recover Fixes #3177 R=adg CC=golang-dev https://golang.org/cl/5728057 --- doc/articles/defer_panic_recover.html | 2 +- doc/articles/defer_panic_recover.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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). -- 2.50.0