chore: fix some comments

Signed-off-by: tongjicoder <tongjicoder@icloud.com>
This commit is contained in:
tongjicoder 2025-05-27 23:14:41 +08:00
parent 317acb3d68
commit 4fe20fa340
3 changed files with 3 additions and 3 deletions

View File

@ -3658,7 +3658,7 @@ func btos(b bool) float64 {
return 0
}
// changesSchema returns true whether the op operation changes the semantic meaning or
// changesMetricSchema returns true whether the op operation changes the semantic meaning or
// schema of the metric.
func changesMetricSchema(op parser.ItemType) bool {
switch op {

View File

@ -485,7 +485,7 @@ type ConcurrentRules []int
// Its purpose is to bound the amount of concurrency in rule evaluations to avoid overwhelming the Prometheus
// server with additional query load. Concurrency is controlled globally, not on a per-group basis.
type RuleConcurrencyController interface {
// SplitGroupIntoBatches returns an ordered slice of of ConcurrentRules, which are batches of rules that can be evaluated concurrently.
// SplitGroupIntoBatches returns an ordered slice of ConcurrentRules, which are batches of rules that can be evaluated concurrently.
// The rules are represented by their index from the input rule group.
SplitGroupIntoBatches(ctx context.Context, group *Group) []ConcurrentRules

View File

@ -429,7 +429,7 @@ Licensed under the MIT license.
//
// Each position after the first receives a clone of the original element.
//
// The idea is that that the width, height, and general 'identity' of the
// The idea is that the width, height, and general 'identity' of the
// text is constant no matter where it is placed; the placements are a
// secondary property.
//