From d2f30e8d794e4bc5a21a561f10fde54d43510188 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 1 Jun 2020 14:34:58 +0300 Subject: [PATCH] app/vmalert: fix comment for UpdateWith exported methods --- app/vmalert/alerting.go | 2 +- app/vmalert/recording.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/vmalert/alerting.go b/app/vmalert/alerting.go index 978fafa3e..c4b12a327 100644 --- a/app/vmalert/alerting.go +++ b/app/vmalert/alerting.go @@ -148,7 +148,7 @@ func (ar *AlertingRule) toTimeSeries(timestamp time.Time) []prompbmarshal.TimeSe return tss } -// copy all significant fields. +// UpdateWith copies all significant fields. // alerts state isn't copied since // it should be updated in next 2 Execs func (ar *AlertingRule) UpdateWith(r Rule) error { diff --git a/app/vmalert/recording.go b/app/vmalert/recording.go index 348041d22..df5b691ce 100644 --- a/app/vmalert/recording.go +++ b/app/vmalert/recording.go @@ -118,7 +118,7 @@ func (rr *RecordingRule) toTimeSeries(m datasource.Metric, timestamp time.Time) return newTimeSeries(m.Value, labels, timestamp) } -// copy all significant fields. +// UpdateWith copies all significant fields. // alerts state isn't copied since // it should be updated in next 2 Execs func (rr *RecordingRule) UpdateWith(r Rule) error {