1
0
mirror of https://github.com/golang/go synced 2024-11-25 03:27:58 -07:00

doc: fix another typo in article on defer, panic and recover

Fixes #3177

R=adg
CC=golang-dev
https://golang.org/cl/5728057
This commit is contained in:
Francisco Souza 2012-03-04 14:40:14 +11:00 committed by Andrew Gerrand
parent dd29609244
commit 54875a7a7f
2 changed files with 2 additions and 2 deletions

View File

@ -236,7 +236,7 @@ panic PC=0x2a9cd8
For a real-world example of <b>panic</b> and <b>recover</b>, see the 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. <a href="/pkg/encoding/json/">json package</a> from the Go standard library.
It decodes JSON-encoded data with a set of recursive functions. 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 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 an appropriate error value (see the 'error' and 'unmarshal' functions in
<a href="/src/pkg/encoding/json/decode.go">decode.go</a>). <a href="/src/pkg/encoding/json/decode.go">decode.go</a>).

View File

@ -157,7 +157,7 @@ panic PC=0x2a9cd8
For a real-world example of <b>panic</b> and <b>recover</b>, see the 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. <a href="/pkg/encoding/json/">json package</a> from the Go standard library.
It decodes JSON-encoded data with a set of recursive functions. 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 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 an appropriate error value (see the 'error' and 'unmarshal' functions in
<a href="/src/pkg/encoding/json/decode.go">decode.go</a>). <a href="/src/pkg/encoding/json/decode.go">decode.go</a>).