Skip to content

Commit

Permalink
runtime/pprof: Fix type name in function comment
Browse files Browse the repository at this point in the history
The name LabelList was changed to LabelSet during the development of the
proposal [1], except in one function comment. This commit fixes that.

Fixes #20905.

[1] #17280

Change-Id: Id4f48d59d7d513fa24b2e42795c2baa5ceb78f36
Reviewed-on: https://go-review.googlesource.com/47470
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
fawick authored and bradfitz committed Jul 5, 2017
1 parent 6c4f3a0 commit b5240da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/pprof/label.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func WithLabels(ctx context.Context, labels LabelSet) context.Context {
}

// Labels takes an even number of strings representing key-value pairs
// and makes a LabelList containing them.
// and makes a LabelSet containing them.
// A label overwrites a prior label with the same key.
func Labels(args ...string) LabelSet {
if len(args)%2 != 0 {
Expand Down

0 comments on commit b5240da

Please sign in to comment.