File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 3
3
// favorite editor and start to play with the main.go file. The comments on it
4
4
// guide you.
5
5
//
6
- // We have only a few examples built over the CopyFile and callRecur functions,
6
+ // We have only a few examples built over the [ CopyFile] and [CallRecur] functions,
7
7
// but with them you can try all the important APIs from err2, try, and assert.
8
8
// Just follow the comments and try suggested things :-)
9
9
package main
@@ -90,7 +90,7 @@ func OrgCopyFile(src, dst string) (err error) {
90
90
return nil
91
91
}
92
92
93
- func callRecur (d int ) (err error ) {
93
+ func CallRecur (d int ) (err error ) {
94
94
defer err2 .Handle (& err )
95
95
96
96
return doRecur (d )
@@ -168,7 +168,7 @@ func doMain() (err error) {
168
168
169
169
// Next fn demonstrates how error and panic traces work, comment out all
170
170
// above CopyFile calls to play with:
171
- try .To (callRecur (1 ))
171
+ try .To (CallRecur (1 ))
172
172
173
173
println ("=== you cannot see this ===" )
174
174
return nil
You can’t perform that action at this time.
0 commit comments