New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compress/gzip: Missing Reader.Read doc #17374
Comments
/cc @dsnet. @willfaught we recently added some examples to tip https://tip.golang.org/pkg/compress/gzip/#pkg-examples so they won't yet be on https://golang.org until the next major release, so for now perhaps that could be of use, before documentation for that method is in? |
Thanks. I think I figured it out, but it'll help the next person. By examples, do you mean actual worded documentation like the rest of the methods there, or code in a doc comment, or actual example functions?
|
By examples, I meant snippets of runnable code in the godoc. |
OK I think Read should still have its own proper godoc comment like the other methods.
|
We often don't document implementations of common interface methods, unless there's something notable to say. Does this reader do something special over a typical |
Nope. I'm not opposed to documenting it either, though. @odeke-em, want to write a single documentation sentence for it? |
@dsnet thanks. For sure I'd love to do that. If it is urgent please go ahead and add it, otherwise I'll be able to submit a patch in about 9 hours when am back home from work. |
I was unsure at first whether this Read read into or out of the param. The two Readers involved confused me. In that context, I didn't recognize it as an io.Reader.Read method. Makes sense when you recognize that.
|
CL https://golang.org/cl/30718 mentions this issue. |
Non-trivial method with no documentation.
The text was updated successfully, but these errors were encountered: