Skip to content

Commit

Permalink
options: fix Options.Get documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mdlayher committed Jun 12, 2015
1 parent 0db62d7 commit 974b6c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ func (o Options) AddRaw(key OptionCode, value []byte) {

// Get attempts to retrieve the first value specified by an OptionCode
// key. If a value is found, get returns the value and boolean true.
// If it is not found, or the value slice is entirely empty, Get
// returns nil and boolean false.
// If it is not found, Get returns nil and boolean false.
func (o Options) Get(key OptionCode) ([]byte, bool) {
// Empty map has no key/value pairs
if len(o) == 0 {
Expand Down

0 comments on commit 974b6c0

Please sign in to comment.