Skip to content

Commit

Permalink
Merge pull request #20 from chankyin/patch-1
Browse files Browse the repository at this point in the history
Typo fix

Signed-off-by: Tim Heckman <t@heckman.io>
  • Loading branch information
theckman committed Aug 11, 2018
2 parents b139a24 + 628446e commit 8afa76c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flock_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (f *Flock) Lock() error {
return f.lock(&f.l, winLockfileExclusiveLock)
}

// RLock is a blocking call to try and take a sahred file lock. It will wait
// RLock is a blocking call to try and take a shared file lock. It will wait
// until it is able to obtain the shared file lock. It's recommended that
// TryRLock() be used over this function. This function may block the ability to
// query the current Locked() or RLocked() status due to a RW-mutex lock.
Expand Down Expand Up @@ -86,7 +86,7 @@ func (f *Flock) Unlock() error {
return nil
}

// TryLock is the preferred function for taking an exlusive file lock. This
// TryLock is the preferred function for taking an exclusive file lock. This
// function does take a RW-mutex lock before it tries to lock the file, so there
// is the possibility that this function may block for a short time if another
// goroutine is trying to take any action.
Expand Down

0 comments on commit 8afa76c

Please sign in to comment.