Skip to content

Commit

Permalink
Merge pull request #499 from zenhack/resolveHook-clerical-errors
Browse files Browse the repository at this point in the history
Fix clerical errors in the comments for resolveHook
  • Loading branch information
lthibault authored Apr 10, 2023
2 parents 70259c7 + 6c21ddf commit 52ee1b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions capability.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ func (c Client) peek() (hook *clientHook, released bool, resolved bool) {
}

// resolveHook resolves h as much as possible without blocking.
// l must point to the state belonging to h. resolveHook returns,
// l will be invalid. The returnd Locked will point at the state of
// l must point to the state belonging to h. When resolveHook returns,
// l will be invalid. The returned Locked will point at the state of
// the returned clientHook if they are not nil.
func resolveHook(h *clientHook, l *mutex.Locked[clientHookState]) (*clientHook, *mutex.Locked[clientHookState]) {
for {
Expand Down

0 comments on commit 52ee1b0

Please sign in to comment.