From c99700ae15851215f34e0b06aad76d671b382d8d Mon Sep 17 00:00:00 2001 From: hagen1778 <roman@victoriametrics.com> Date: Tue, 6 Aug 2024 14:54:49 +0200 Subject: [PATCH] fix typos in comments Signed-off-by: hagen1778 <roman@victoriametrics.com> (cherry picked from commit f283126084b6aeed754ab888477f27c6019aced6) --- app/vmselect/netstorage/tmp_blocks_file.go | 2 +- lib/fs/fs.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/vmselect/netstorage/tmp_blocks_file.go b/app/vmselect/netstorage/tmp_blocks_file.go index f918744335..f6b39c2840 100644 --- a/app/vmselect/netstorage/tmp_blocks_file.go +++ b/app/vmselect/netstorage/tmp_blocks_file.go @@ -140,7 +140,7 @@ func (tbf *tmpBlocksFile) Finalize() error { tbf.buf = tbf.buf[:0] r := fs.NewReaderAt(tbf.f) - // Hint the OS that the file is read almost sequentiallly. + // Hint the OS that the file is read almost sequentially. // This should reduce the number of disk seeks, which is important // for HDDs. r.MustFadviseSequentialRead(true) diff --git a/lib/fs/fs.go b/lib/fs/fs.go index 980066b103..9a451fb24b 100644 --- a/lib/fs/fs.go +++ b/lib/fs/fs.go @@ -52,7 +52,7 @@ func MustWriteSync(path string, data []byte) { // in the middle of the write. // // If the file at path already exists, then the file is overwritten atomically if canOverwrite is true. -// Otherwise error is returned. +// Otherwise, error is returned. func MustWriteAtomic(path string, data []byte, canOverwrite bool) { // Check for the existing file. It is expected that // the MustWriteAtomic function cannot be called concurrently