Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
54875a7a
Commit
54875a7a
authored
Mar 04, 2012
by
Francisco Souza
Committed by
Andrew Gerrand
Mar 04, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: fix another typo in article on defer, panic and recover
Fixes #3177 R=adg CC=golang-dev
https://golang.org/cl/5728057
parent
dd296092
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
defer_panic_recover.html
doc/articles/defer_panic_recover.html
+1
-1
defer_panic_recover.tmpl
doc/articles/defer_panic_recover.tmpl
+1
-1
No files found.
doc/articles/defer_panic_recover.html
View file @
54875a7a
...
...
@@ -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>
).
...
...
doc/articles/defer_panic_recover.tmpl
View file @
54875a7a
...
...
@@ -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>).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment