Skip to content
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

Various documentation cleanups #1132

Merged
merged 7 commits into from
Nov 12, 2019

Conversation

Thomasdezeeuw
Copy link
Collaborator

No description provided.

And replace it with the try (`?`) operator.
Hopefully this will be useful when porting Mio to another OS or selector
(io_uring anyone?).
Don't advocate calling Events::clear before calling Poll::poll as that
is not needed.
Not an interesting example. Furthermore we don't guarantee that the size
of Interests will always remain the same.
src/event/events.rs Show resolved Hide resolved
/// [`poll`]: Poll::poll
/// [`reregister`]: Registry::reregister
/// [`deregister`]: Registry::deregister
/// [`Token`]: Token
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like a lot of the links don't work properly in the documentation, but since this PR is changing these they should be:

/// [`poll`]: struct.Poll.html#method.poll
/// [`reregister`]: #method.reregister
/// [`deregister`]: #method.deregister
/// [`Token`]: struct.Token.html

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are intra docs links. They link e.g. the Poll::poll method. These should work, or at least don't give any warning on my machine.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So running cargo doc --open locally and clicking these links in the Registry documentation works? It does not me; it loads a blank page.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed on Discord; this is nightly only (rust-lang/rust#63305).

src/event/events.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@kleimkuhler kleimkuhler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Thomasdezeeuw If you want to keep these as intra doc links I'm fine with that. I'm not sure from the Discord discussion if you intended to at least just change these ones back.

@Thomasdezeeuw
Copy link
Collaborator Author

@kleimkuhler I'm keeping the intra-docs as is for now. Once we're ready to release a v0.7 we'll change all links I've opened #1136 for it.

@Thomasdezeeuw Thomasdezeeuw merged commit 952932a into tokio-rs:master Nov 12, 2019
@Thomasdezeeuw Thomasdezeeuw deleted the doc-cleanups branch November 12, 2019 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants