]> Cypherpunks.ru repositories - gostls13.git/commitdiff
runtime/pprof: Fix type name in function comment
authorFabian Wickborn <fabian@wickborn.net>
Wed, 5 Jul 2017 08:09:05 +0000 (10:09 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 5 Jul 2017 18:26:47 +0000 (18:26 +0000)
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] https://github.com/golang/go/issues/17280

Change-Id: Id4f48d59d7d513fa24b2e42795c2baa5ceb78f36
Reviewed-on: https://go-review.googlesource.com/47470
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/pprof/label.go

index 44da3f873724d72d32c22cce2e4ce29f1a2e3008..35647ee3ce1f2114a25b9e5014544ab8807ca33a 100644 (file)
@@ -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 {