Skip to content

Commit

Permalink
Clarify doc comment for PrepareReturn()
Browse files Browse the repository at this point in the history
...based on Louis's feedback.
  • Loading branch information
zenhack committed Jan 13, 2023
1 parent 3b58955 commit 2877e72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion capability.go
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,9 @@ type Returner interface {
AllocResults(sz ObjectSize) (Struct, error)

// PrepareReturn finalizes the return message. The method call will
// resolve successfully if e is nil, or otherwise it will fail.
// resolve successfully if e is nil, or otherwise it will return an
// exception to the caller.
//
// PrepareReturn must be called once.
//
// After PrepareReturn is invoked, no goroutine may modify the message
Expand Down

0 comments on commit 2877e72

Please sign in to comment.