From 51d4b89f8acece358e0dc57ee31977f8f9e21352 Mon Sep 17 00:00:00 2001 From: Chin-Ya Huang Date: Mon, 19 Feb 2024 08:54:44 +0800 Subject: [PATCH] fix: typo Signed-off-by: Chin-Ya Huang --- ns/filelock.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ns/filelock.go b/ns/filelock.go index 698cca6c..b0ce92c6 100644 --- a/ns/filelock.go +++ b/ns/filelock.go @@ -40,7 +40,7 @@ func LockFile(path string) (result *os.File, err error) { // FileLock is a struct responsible for locking a file. type FileLock struct { FilePath string // The path of the file to lock. - File *os.File // The file handle aquired after successful lock. + File *os.File // The file handle acquired after successful lock. Timeout time.Duration // The maximum time to wait for lock acquisition. done chan struct{} // A channel for signaling lock release.