Skip to content

Commit

Permalink
Fix clerical errors in the comments for resolveHook
Browse files Browse the repository at this point in the history
  • Loading branch information
zenhack committed Apr 10, 2023
1 parent 70259c7 commit 6c21ddf
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 6c21ddf

Please sign in to comment.