Skip to content

Commit b54b73c

Browse files
committed
Remove spurious commas from links to the docs site
I assume older Nanoc versions rendered the anchors with commas, but the current doesn't. Also, this adds the same link to another doc comment where it is also relevant. Signed-off-by: beorn7 <[email protected]>
1 parent 30ef25b commit b54b73c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

prometheus/metric.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ type Opts struct {
8989
// better covered by target labels set by the scraping Prometheus
9090
// server, or by one specific metric (e.g. a build_info or a
9191
// machine_role metric). See also
92-
// https://prometheus.io/docs/instrumenting/writing_exporters/#target-labels,-not-static-scraped-labels
92+
// https://prometheus.io/docs/instrumenting/writing_exporters/#target-labels-not-static-scraped-labels
9393
ConstLabels Labels
9494
}
9595

prometheus/summary.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ type SummaryOpts struct {
110110
// better covered by target labels set by the scraping Prometheus
111111
// server, or by one specific metric (e.g. a build_info or a
112112
// machine_role metric). See also
113-
// https://prometheus.io/docs/instrumenting/writing_exporters/#target-labels,-not-static-scraped-labels
113+
// https://prometheus.io/docs/instrumenting/writing_exporters/#target-labels-not-static-scraped-labels
114114
ConstLabels Labels
115115

116116
// Objectives defines the quantile rank estimates with their respective

prometheus/wrap.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ import (
3232
// in a no-op Registerer.
3333
//
3434
// WrapRegistererWith provides a way to add fixed labels to a subset of
35-
// Collectors. It should not be used to add fixed labels to all metrics exposed.
35+
// Collectors. It should not be used to add fixed labels to all metrics
36+
// exposed. See also
37+
// https://prometheus.io/docs/instrumenting/writing_exporters/#target-labels-not-static-scraped-labels
3638
//
3739
// Conflicts between Collectors registered through the original Registerer with
3840
// Collectors registered through the wrapping Registerer will still be

0 commit comments

Comments
 (0)