Skip to content

Commit b2d4af0

Browse files
committed
export because of the doc ref link
1 parent a1bb857 commit b2d4af0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

samples/main-play.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// favorite editor and start to play with the main.go file. The comments on it
44
// guide you.
55
//
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,
77
// but with them you can try all the important APIs from err2, try, and assert.
88
// Just follow the comments and try suggested things :-)
99
package main
@@ -90,7 +90,7 @@ func OrgCopyFile(src, dst string) (err error) {
9090
return nil
9191
}
9292

93-
func callRecur(d int) (err error) {
93+
func CallRecur(d int) (err error) {
9494
defer err2.Handle(&err)
9595

9696
return doRecur(d)
@@ -168,7 +168,7 @@ func doMain() (err error) {
168168

169169
// Next fn demonstrates how error and panic traces work, comment out all
170170
// above CopyFile calls to play with:
171-
try.To(callRecur(1))
171+
try.To(CallRecur(1))
172172

173173
println("=== you cannot see this ===")
174174
return nil

0 commit comments

Comments
 (0)