From 58dbe927d544bbc0c9250c524b2b0f0905a947d2 Mon Sep 17 00:00:00 2001 From: geogrego Date: Wed, 29 Oct 2025 14:42:14 +0800 Subject: [PATCH] docs: minor improvement for docs Signed-off-by: geogrego --- docs/configuration/configuration.md | 2 +- promql/promqltest/testdata/extended_vectors.test | 2 +- promql/promqltest/testdata/native_histograms.test | 2 +- storage/interface.go | 2 +- tsdb/tombstones/tombstones.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/configuration/configuration.md b/docs/configuration/configuration.md index d00a1f7407..7eab633987 100644 --- a/docs/configuration/configuration.md +++ b/docs/configuration/configuration.md @@ -179,7 +179,7 @@ global: # 1, but the resulting classic histogram or NHCB only has a sole bucket, the # +Inf bucket. If scrape_native_histograms is true, however, the histogram is # recognized as a pure native histogram and ingested as such. There will be - # no classic histgram ingested, no matter what + # no classic histogram ingested, no matter what # always_scrape_classic_histograms is set to, and there will be no # conversion to an NHCB, no matter what convert_classic_histograms_to_nhcb # is set to. diff --git a/promql/promqltest/testdata/extended_vectors.test b/promql/promqltest/testdata/extended_vectors.test index 892d6ea54e..8e116b1ac5 100644 --- a/promql/promqltest/testdata/extended_vectors.test +++ b/promql/promqltest/testdata/extended_vectors.test @@ -169,7 +169,7 @@ eval instant at 110s increase(metric[1m] smoothed) eval instant at 125s increase(metric[1m] smoothed) {} 4.666666666 -# Test that inverval is left-open. +# Test that interval is left-open. clear load 1m diff --git a/promql/promqltest/testdata/native_histograms.test b/promql/promqltest/testdata/native_histograms.test index a0268a90f0..fd4b1f4178 100644 --- a/promql/promqltest/testdata/native_histograms.test +++ b/promql/promqltest/testdata/native_histograms.test @@ -1580,7 +1580,7 @@ eval instant at 5m metric - 0.5 * metric {id="1"} {{count:2 sum:2 counter_reset_hint:gauge buckets:[0.5 1 0.5]}} {id="2"} {{count:2 sum:2 counter_reset_hint:gauge buckets:[0.5 1 0.5]}} -# Subtraction results in gauges, now with actually negtive result. +# Subtraction results in gauges, now with actually negative result. eval instant at 5m metric - 2 * metric expect no_warn expect no_info diff --git a/storage/interface.go b/storage/interface.go index 5684460db0..9d7e5d93a6 100644 --- a/storage/interface.go +++ b/storage/interface.go @@ -389,7 +389,7 @@ type SeriesSet interface { Next() bool // At returns full series. Returned series should be iterable even after Next is called. At() Series - // The error that iteration as failed with. + // The error that iteration has failed with. // When an error occurs, set cannot continue to iterate. Err() error // A collection of warnings for the whole set. diff --git a/tsdb/tombstones/tombstones.go b/tsdb/tombstones/tombstones.go index 9df70d3c29..bda565eae4 100644 --- a/tsdb/tombstones/tombstones.go +++ b/tsdb/tombstones/tombstones.go @@ -353,7 +353,7 @@ func (in Intervals) Add(n Interval) Intervals { return append(in, n) } // Find min and max indexes of intervals that overlap with the new interval. - // Intervals are closed [t1, t2] and t is discreet, so if neighbour intervals are 1 step difference + // Intervals are closed [t1, t2] and t is discrete, so if neighbour intervals are 1 step difference // to the new one, we can merge those together. mini := 0 if n.Mint != math.MinInt64 { // Avoid overflow.