diff options
Diffstat (limited to 'src/runtime/pprof/label.go')
| -rw-r--r-- | src/runtime/pprof/label.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/pprof/label.go b/src/runtime/pprof/label.go index d39e0ad58e..3684ae34e5 100644 --- a/src/runtime/pprof/label.go +++ b/src/runtime/pprof/label.go @@ -54,7 +54,7 @@ func (l *labelMap) String() string { return "{" + strings.Join(keyVals, ", ") + "}" } -// WithLabels returns a new context.Context with the given labels added. +// WithLabels returns a new [context.Context] with the given labels added. // A label overwrites a prior label with the same key. func WithLabels(ctx context.Context, labels LabelSet) context.Context { parentLabels := labelValue(ctx) @@ -72,7 +72,7 @@ func WithLabels(ctx context.Context, labels LabelSet) context.Context { } // Labels takes an even number of strings representing key-value pairs -// and makes a LabelSet containing them. +// and makes a [LabelSet] containing them. // A label overwrites a prior label with the same key. // Currently only the CPU and goroutine profiles utilize any labels // information. |
