chore: fix comment (#21966)

This commit is contained in:
tianyeyouyou
2024-09-28 07:18:08 +00:00
committed by GitHub
parent 7fe95fc3f9
commit dd9e5825ae
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ type GatherResponse struct {
ContentType string
}
// New creates a new instance of Metrics
// NewMetrics creates a new instance of Metrics
func NewMetrics(cfg *Config) (*Metrics, error) {
if numGlobalLabels := len(cfg.GlobalLabels); numGlobalLabels > 0 {
parsedGlobalLabels := make([]metrics.Label, numGlobalLabels)