From b1a7df2c0cbf1e566dd64a7f7f48f6cb18bdb97e Mon Sep 17 00:00:00 2001 From: liangmulu Date: Wed, 9 Jul 2025 18:05:41 +0800 Subject: [PATCH] chore: fix some minor issues in comments Signed-off-by: liangmulu --- docs/configuration/configuration.md | 2 +- docs/configuration/promtool.md | 4 ++-- promql/engine.go | 2 +- tsdb/db_test.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/configuration/configuration.md b/docs/configuration/configuration.md index 45f099af4e..580e57ed1a 100644 --- a/docs/configuration/configuration.md +++ b/docs/configuration/configuration.md @@ -260,7 +260,7 @@ job_name: # OpenMetricsText1.0.0, PrometheusText0.0.4, PrometheusText1.0.0. [ scrape_protocols: [, ...] | default = ] -# Fallback protocol to use if a scrape returns blank, unparseable, or otherwise +# Fallback protocol to use if a scrape returns blank, unparsable, or otherwise # invalid Content-Type. # Supported values (case sensitive): PrometheusProto, OpenMetricsText0.0.1, # OpenMetricsText1.0.0, PrometheusText0.0.4, PrometheusText1.0.0. diff --git a/docs/configuration/promtool.md b/docs/configuration/promtool.md index 7578ef90b3..d127ad080c 100644 --- a/docs/configuration/promtool.md +++ b/docs/configuration/promtool.md @@ -123,14 +123,14 @@ tls_config: # For the following configurations, use either `ca`, `cert` and `key` or `ca_file`, `cert_file` and `key_file` or use `ca_ref`, `cert_ref` or `key_ref`. # Text of the CA certificate to use for the server. [ ca: ] -# CA certificate to validate the server certificate witth. +# CA certificate to validate the server certificate with. [ ca_file: ] # `ca_ref` is the name of the secret within the secret manager to use as the CA cert. [ ca_ref: ] # Text of the client cert file for the server. [ cert: ] -# Certficate file for client certificate authentication. +# Certificate file for client certificate authentication. [ cert_file: ] # `cert_ref` is the name of the secret within the secret manager to use as the client certificate. [ cert_ref: ] diff --git a/promql/engine.go b/promql/engine.go index 5ced656231..f5ee591d3b 100644 --- a/promql/engine.go +++ b/promql/engine.go @@ -129,7 +129,7 @@ type QueryLogger interface { io.Closer } -// A Query is derived from an a raw query string and can be run against an engine +// A Query is derived from a raw query string and can be run against an engine // it is associated with. type Query interface { // Exec processes the query. Can only be called once. diff --git a/tsdb/db_test.go b/tsdb/db_test.go index b118d3deb3..97e23e0c3d 100644 --- a/tsdb/db_test.go +++ b/tsdb/db_test.go @@ -9066,7 +9066,7 @@ func TestOOONativeHistogramsSettings(t *testing.T) { }) } -// compareSeries essentially replaces `require.Equal(t, expected, actual) in +// compareSeries essentially replaces `require.Equal(t, expected, actual)` in // situations where the actual series might contain more counter reset hints // "unknown" than the expected series. This can easily happen for long series // that trigger new chunks. This function therefore tolerates counter reset