mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-05-17 08:36:55 +03:00
spelling and grammar fixes via codespell (#8497)
### Describe Your Changes Fix many spelling errors and some grammar, including misspellings in filenames. The change also fixes a typo in metric `vm_mmaped_files` to `vm_mmapped_files`. While this is a breaking change, this metric isn't used in alerts or dashboards. So it seems to have low impact on users. The change also deprecates `cspell` as it is much heavier and less usable. --------- Co-authored-by: Andrii Chubatiuk <achubatiuk@victoriametrics.com> Co-authored-by: Andrii Chubatiuk <andrew.chubatiuk@gmail.com>
This commit is contained in:
@@ -327,7 +327,7 @@ func isDeltaConst(a []int64) bool {
|
||||
// i.e. arbitrary changing values.
|
||||
//
|
||||
// It is OK if a few gauges aren't detected (i.e. detected as counters),
|
||||
// since misdetected counters as gauges leads to worser compression ratio.
|
||||
// since misdetected counters as gauges leads to worse compression ratio.
|
||||
func isGauge(a []int64) bool {
|
||||
// Check all the items in a, since a part of items may lead
|
||||
// to incorrect gauge detection.
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
// GetFloat64s returns a slice of float64 values with the given size.
|
||||
//
|
||||
// When the returned slice is no longer needed, it is advised calling PutFloat64s() on it,
|
||||
// so it could be re-used.
|
||||
// so it could be reused.
|
||||
func GetFloat64s(size int) *Float64s {
|
||||
v := float64sPool.Get()
|
||||
if v == nil {
|
||||
@@ -20,7 +20,7 @@ func GetFloat64s(size int) *Float64s {
|
||||
return a
|
||||
}
|
||||
|
||||
// PutFloat64s returns a to the pool, so it can be re-used via GetFloat64s.
|
||||
// PutFloat64s returns a to the pool, so it can be reused via GetFloat64s.
|
||||
//
|
||||
// The a cannot be used after returning to the pull.
|
||||
func PutFloat64s(a *Float64s) {
|
||||
|
||||
@@ -321,7 +321,7 @@ func testMarshalUnmarshalBytes(t *testing.T, s string) {
|
||||
t.Fatalf("unexpected sNew from b=%x; got %q; expecting %q", b, bNew, s)
|
||||
}
|
||||
if len(tail) > 0 {
|
||||
t.Fatalf("unexepcted data left after unmarshaling s=%q from b=%x: %x", s, b, tail)
|
||||
t.Fatalf("unexpected data left after unmarshaling s=%q from b=%x: %x", s, b, tail)
|
||||
}
|
||||
|
||||
prefix := []byte("abcde")
|
||||
|
||||
Reference in New Issue
Block a user