Skip to content

Commit d881836

Browse files
committed
improve doc of js.Error (#275)
1 parent bc27ff3 commit d881836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/js.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func (o *Object) Interface() interface{} { return o.object.Interface() }
7979
// Unsafe returns the object as an uintptr, which can be converted via unsafe.Pointer. Not intended for public use.
8080
func (o *Object) Unsafe() uintptr { return o.object.Unsafe() }
8181

82-
// Error encapsulates JavaScript errors. Those are turned into a Go panic and may be rescued, giving an *Error that holds the JavaScript error object.
82+
// Error encapsulates JavaScript errors. Those are turned into a Go panic and may be recovered, giving an *Error that holds the JavaScript error object.
8383
type Error struct {
8484
*Object
8585
}

0 commit comments

Comments
 (0)