docs: fixed typos (#8878)

### Describe Your Changes

fixed typos in docs and code
fixed collision in cloud docs

### Checklist

The following checks are **mandatory**:

- [ ] My change adheres to [VictoriaMetrics contributing
guidelines](https://docs.victoriametrics.com/victoriametrics/contributing/).
This commit is contained in:
Andrii Chubatiuk
2025-05-06 13:03:56 +03:00
committed by GitHub
parent 0a4e7912fd
commit ac414d8b93
26 changed files with 45 additions and 44 deletions

View File

@@ -30,7 +30,7 @@ func GetReader(r io.Reader) *Reader {
return zr
}
// PutReader returns zr to the pool, so it could be re-used via GetReader.
// PutReader returns zr to the pool, so it could be reused via GetReader.
func PutReader(zr *Reader) {
// Do not call zr.Reset() in order to avoid CGO call.
// The zr.Reset() is automatically called when zr is destroyed by Go GC.
@@ -61,10 +61,10 @@ func GetWriter(w io.Writer, compressLevel int) *Writer {
return zw
}
// PutWriter returns zw to the pool, so it could be re-used via GetWriter.
// PutWriter returns zw to the pool, so it could be reused via GetWriter.
func PutWriter(zw *Writer) {
// Do not call zw.Reset() in order to avoid CGO call.
// The zw.Reset() is automaticall called when zw is destroyed by Go GC.
// The zw.Reset() is automatically called when zw is destroyed by Go GC.
writerPool.Put(zw)
}

View File

@@ -53,7 +53,7 @@ func GetReader(r io.Reader) *Reader {
return zr
}
// PutReader returns zr to the pool, so it could be re-used via GetReader.
// PutReader returns zr to the pool, so it could be reused via GetReader.
func PutReader(zr *Reader) {
if err := zr.d.Reset(nil); err != nil {
logger.Panicf("BUG: unexpected error when resetting ZSTD reader: %s", err)
@@ -118,7 +118,7 @@ func GetWriter(w io.Writer, level int) *Writer {
return zw
}
// PutWriter returns zw to the pool, so it could be re-used via GetWriter.
// PutWriter returns zw to the pool, so it could be reused via GetWriter.
func PutWriter(zw *Writer) {
zw.e.Reset(nil)