From a4c553cef1bae57281e03af8a5f813778fdea5ec Mon Sep 17 00:00:00 2001 From: Andrew Voynov Date: Mon, 19 Aug 2024 18:53:04 +0500 Subject: [PATCH] chore: fixed docs typo --- src/file_ext/async_impl.rs | 4 ++-- src/file_ext/sync_impl.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/file_ext/async_impl.rs b/src/file_ext/async_impl.rs index e1a2158f..c253b64c 100644 --- a/src/file_ext/async_impl.rs +++ b/src/file_ext/async_impl.rs @@ -46,11 +46,11 @@ macro_rules! async_file_ext { /// locked. fn lock_exclusive(&self) -> Result<()>; - /// Locks the file for shared usage, or returns a an error if the file is + /// Locks the file for shared usage, or returns an error if the file is /// currently locked (see `lock_contended_error`). fn try_lock_shared(&self) -> Result<()>; - /// Locks the file for shared usage, or returns a an error if the file is + /// Locks the file for exclusive usage, or returns an error if the file is /// currently locked (see `lock_contended_error`). fn try_lock_exclusive(&self) -> Result<()>; diff --git a/src/file_ext/sync_impl.rs b/src/file_ext/sync_impl.rs index a9bfd6c3..9739c847 100644 --- a/src/file_ext/sync_impl.rs +++ b/src/file_ext/sync_impl.rs @@ -50,7 +50,7 @@ macro_rules! file_ext { /// currently locked (see `lock_contended_error`). fn try_lock_shared(&self) -> Result<()>; - /// Locks the file for shared usage, or returns an error if the file is + /// Locks the file for exclusive usage, or returns an error if the file is /// currently locked (see `lock_contended_error`). fn try_lock_exclusive(&self) -> Result<()>;