Skip to content

Commit 73267f4

Browse files
committed
doc: update doc.
1 parent 6f97702 commit 73267f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

error.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ package optional
33
import "errors"
44

55
var (
6+
// ErrNilFunction indicates the supplier function is nil.
67
ErrNilFunction = errors.New("nil function")
8+
// ErrNoSuchValue indicates the Optional does not contain any value.
79
ErrNoSuchValue = errors.New("no such value")
810
)

0 commit comments

Comments
 (0)