From 4b23addc20e379fbbbfc102d59d43922e82ddf5c Mon Sep 17 00:00:00 2001 From: Sergey Grebenshchikov Date: Fri, 20 Sep 2024 00:51:39 +0200 Subject: [PATCH] docs --- sliding/options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sliding/options.go b/sliding/options.go index fbbfd1e..45428f1 100644 --- a/sliding/options.go +++ b/sliding/options.go @@ -19,7 +19,7 @@ func WithDecayLUTSize(n int) Option { // WithBucketHistoryLength sets the number of old counters to keep per bucket. // // This parameter primarily affects the precision of the [Sketch.Tick] method: -// - The sliding window is accurate (modul counter error) if there as many counters as there are ticks in the window. +// - The sliding window is accurate (modulo counter error) if there as many counters as there are ticks in the window. // - If there are fewer old counters, the counts of several ticks are collected in one counter, resulting in imprecise aging. func WithBucketHistoryLength(n int) Option { return func(s *Sketch) { s.BucketHistoryLength = n }