Skip to content

Commit dfde0a4

Browse files
committed
documentation to sample
1 parent 314344a commit dfde0a4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

samples/main-play.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func doPlayMain() {
136136
doDoMain()
137137
//try.To(doMain())
138138

139-
println("______===")
139+
println("___ happy ending ===")
140140
}
141141

142142
func doDoMain() {
@@ -145,6 +145,9 @@ func doDoMain() {
145145

146146
func doMain() (err error) {
147147
// Example of Handle/Catch API where we can have multiple handlers.
148+
// Note that this is a silly sample where logging is done trice and noops
149+
// are used without a purpose. All of this is that you get an idea how you
150+
// could use the error handlers and chain them together.
148151
defer err2.Handle(&err, err2.Log, err2.Noop, err2.Noop, err2.Log)
149152

150153
// You can select any one of the try.To(CopyFile lines to play with and see

0 commit comments

Comments
 (0)