Skip to content

Commit

Permalink
updated comments for Get function for params (#2756)
Browse files Browse the repository at this point in the history
  • Loading branch information
imaskm authored Jun 23, 2021
1 parent 61a0cda commit a8857ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ type Param struct {
// It is therefore safe to read values by the index.
type Params []Param

// Get returns the value of the first Param which key matches the given name.
// If no matching Param is found, an empty string is returned.
// Get returns the value of the first Param which key matches the given name and a boolean true.
// If no matching Param is found, an empty string is returned and a boolean false .
func (ps Params) Get(name string) (string, bool) {
for _, entry := range ps {
if entry.Key == name {
Expand Down

0 comments on commit a8857ed

Please sign in to comment.