diff --git a/internal/plot/hist.go b/internal/plot/hist.go index 9804a212..7eba66d1 100644 --- a/internal/plot/hist.go +++ b/internal/plot/hist.go @@ -51,7 +51,7 @@ func downsampleBuckets(h *metrics.Float64Histogram, factor int) []float64 { // downsampleCounts downsamples the counts in the provided histogram, using the // given factor. Every 'factor' buckets are merged into one, larger, bucket. If -// the number of buckets is not divisible by 'factor', then an addtional last +// the number of buckets is not divisible by 'factor', then an additional last // bucket will contain the sum of the counts in all relainbing buckets. // // Note: slice should be a slice of maxBuckets elements, so that it can be diff --git a/internal/static/js/buffer.js b/internal/static/js/buffer.js index f684679a..7b205aea 100644 --- a/internal/static/js/buffer.js +++ b/internal/static/js/buffer.js @@ -18,7 +18,7 @@ export default class Buffer { } push(pt) { if (this._pos >= this._cap) { - // move data to the beggining of the buffer, effectively discarding + // move data to the beginning of the buffer, effectively discarding // the cap-len oldest elements this._buf.copyWithin(0, this._cap - this._len); this._pos = this._len; @@ -43,4 +43,4 @@ export default class Buffer { let start = this._pos - len; return this._buf.slice(start, start + len); } -}; \ No newline at end of file +};