x/crypto/nacl: function docs should describe return values #71234
Labels
Documentation
Issues describing a change to documentation.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go version go1.23.0 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
The inline documentation for the functions in golang.org/x/crypto/nacl do not describe their return values.
What did you see happen?
For example,
secretbox.Open()
andsecretbox.Seal()
should describe what their return values are. Contrast this with, for example, the documentation for poly1305, which either describes what the return value is ("Size returns the number of bytes Sum will return.") or makes it implicit through named return values (func (h *MAC) Write(p []byte) (n int, err error)
).What did you expect to see?
See above comment
The text was updated successfully, but these errors were encountered: