-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
docs: improve discoverability of tokio_util::codec module #2523
Conversation
Since it was such a small typo I also added a patch that fixes #2468 |
The section on the two traits at the beginning is very busy looking with every instance of AsyncRead and AsyncWrite as a hyper link. With only one instance of each trait name linked the set of links pops in a more useful way.
fixed: - removed repeated "the" - rephrased slightly
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.
You have a lot of broken links. Please check out CONTRIBUTING.md
for instructions on how to properly build the documentation. The command to build it is:
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features
If you use the stable cargo doc
command, a lot of the automated link verification will not work. You should also ensure that your nightly install is recent.
- correct links to Encoder/Decoder - fix futures links - fix stream links
Dang, I knew I was building the docs wrong! I've fixed the broken links now. |
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.
It looks reasonable. You have touched a bunch of links that appeared to work correctly before, but I'm ok with making them use intra-rustdoc links explicitly.
This is my attempt at improving the documentation and visibilty of the codec module.
I think directly mentioning that it converts between AsyncRead/AsyncWrite and Sink/Stream in the module description is a little clearer at least.
I also added a section to the
tokio::io
module describing whatcodec
is used for.Fixes #2475