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

doc: why saying "Create" while the API returns a reference of existing one #1861

Open
keepsimple1 opened this issue Feb 24, 2025 · 1 comment

Comments

@keepsimple1
Copy link

mio/src/poll.rs

Lines 332 to 336 in edc0c76

/// Create a separate `Registry` which can be used to register
/// `event::Source`s.
pub fn registry(&self) -> &Registry {
&self.registry
}

I'm confused about the doc comment of "Create a separate Registry" while the function returns the reference of existing registry. Did I misunderstand it?

@Thomasdezeeuw
Copy link
Collaborator

We can change it to Returns a Registry

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

No branches or pull requests

2 participants