Skip to content

Commit

Permalink
Fix typo in Errors chapter
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Engels authored and johto committed Feb 6, 2014
1 parent 02882d7 commit b7b3322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Errors
pq may return errors of type *pq.Error which can be interrogated for error details:
if err, ok := err.(*pq.Error), ok {
if err, ok := err.(*pq.Error); ok {
fmt.Println("pq error:", err.Code.Name())
}
Expand Down

0 comments on commit b7b3322

Please sign in to comment.