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
Do some rustdoc cleanups #1357
Do some rustdoc cleanups #1357
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK d9d1d84
This is a strict improvement but there are a few thing that could be even better. (For a future PR.)
Thanks for the review @Kixunil, I've added "do follow up PR" to my todo list. |
d9d1d84
to
6c1a915
Compare
Rebased to pick up recent clippy fixes. Added an additional patch containing a bunch of improvements as suggested in the review above. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR looks good, I'm not sure why it's a draft.
So as not to force rebasing onto others like you mention above :) I believe this PR conflicts with #1323 so I'll let that one go in first. |
a2f6458
to
7ed91bd
Compare
Rebased, no other changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 7ed91bd
7ed91bd
to
e82ee26
Compare
Rebased only, no other changes. |
e82ee26
to
9761e4a
Compare
Fixed the rebase fail. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 9761e4a
rustdocs should contain a newline to separate the brief description from the rest of long description.
Do an audit of the `blockdata` module and clean up rustdocs.
Reduce the number of lines of code by using a longer column width, 100 as is more-or-less standard in this repo. This patch only changes column width (line length), no other changes.
The comments add no value to the code, remove them.
Do an audit of the `consensus` module and clean up rustdocs.
Recently we (tcharding) do some mechanical improvements to the rustdocs in the `blockdata` module without considering the content. On review a bunch of improvements were suggested. Improve the content of various rustdoc comments in the `blockdata` module. Suggested content came from reviewers, all mistakes are my own :)
In order to really bring the security risks of RBF to peoples attention make the docs more scary.
9761e4a
to
26be9dd
Compare
Rebased removing changes to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 26be9dd
The missing n
s can go to typos issue.
fn emit_u16(&mut self, v: u16) -> Result<(), io::Error>; | ||
/// Output a 8-bit uint | ||
/// Outputs a 8-bit unsigned integer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: an
fn emit_i16(&mut self, v: i16) -> Result<(), io::Error>; | ||
/// Output a 8-bit int | ||
/// Outputs a 8-bit signed integer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an
fn read_i16(&mut self) -> Result<i16, Error>; | ||
/// Read a 8-bit int | ||
/// Reads a 8-bit signed integer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an
fn read_u16(&mut self) -> Result<u16, Error>; | ||
/// Read a 8-bit uint | ||
/// Reads a 8-bit unsigned integer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 26be9dd
Put some effort into our documentation, this is all pretty non-controversial. Patches separated to ease review.