Skip to content

Commit

Permalink
Add comment about internal function
Browse files Browse the repository at this point in the history
  • Loading branch information
Faye Amacker committed Sep 15, 2019
1 parent 9ad5a78 commit 593f35a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func newEncodeState() *encodeState {
return encodeStatePool.Get().(*encodeState)
}

// returnEncodeState returns e to encodeStatePool.
func returnEncodeState(e *encodeState) {
e.Reset()
encodeStatePool.Put(e)
Expand Down

0 comments on commit 593f35a

Please sign in to comment.