Skip to content

Commit bfa072b

Browse files
committed
optimize package description
1 parent aa59314 commit bfa072b

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

doc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
Package err2 provides three main functionality:
3-
1. err2 package includes helper functions for error handling & automatic error
2+
Package err2 is error handling solution including three main functionality:
3+
1. err2 package offers helper functions for error handling & automatic error
44
stack tracing
55
2. [github.com/lainio/err2/try] sub-package is for error checking
66
3. [github.com/lainio/err2/assert] sub-package is for design-by-contract and

try/try.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
/*
2-
Package try is a package for [To], [To1], and [To2] functions that implement the error
3-
checking. [To] functions check 'if err != nil' and if it throws the err to the
4-
error handlers, which are implemented by the err2 package. More information
5-
about err2 and try packager roles can be seen in the FileCopy example:
2+
Package try is a package for error checking with the functions: [To], [To1], and
3+
[To2]. These functions check the last given error argument isn't nil, i.e., 'if
4+
err != nil' and if it is, it throws the err to the error handlers. More
5+
information about err2 and try packages roles can be seen in the FileCopy
6+
example:
67
78
...
89
r := try.To1(os.Open(src))

0 commit comments

Comments
 (0)