Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go123
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go123
Commits
3cf7f3f5
Commit
3cf7f3f5
authored
May 27, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xerr: Fix thinko in package documentation
It was address-of error (the type) instead of &err.
parent
4e95375b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
xerr/xerr.go
xerr/xerr.go
+2
-2
No files found.
xerr/xerr.go
View file @
3cf7f3f5
// Copyright (C) 2015-20
18
Nexedi SA and Contributors.
// Copyright (C) 2015-20
20
Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
// Kirill Smelkov <kirr@nexedi.com>
//
//
// This program is free software: you can Use, Study, Modify and Redistribute
// This program is free software: you can Use, Study, Modify and Redistribute
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
// for example:
// for example:
//
//
// func myfunc(arg1, arg2 string) (..., err error) {
// func myfunc(arg1, arg2 string) (..., err error) {
// defer xerr.Contextf(&err
or
, "doing something (%s, %s)", arg1, arg2)
// defer xerr.Contextf(&err, "doing something (%s, %s)", arg1, arg2)
// ...
// ...
//
//
// which will, if returned error is !nil, wrap it with the following prefix:
// which will, if returned error is !nil, wrap it with the following prefix:
...
...
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