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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix doc: Let comment match example #3685

Merged
merged 1 commit into from Apr 8, 2021
Merged

Conversation

matthiasbeyer
Copy link
Contributor

The example uses Duration::from_secs(1) and the explanation says something about 300ms, which does not match.
Use "1s" instead in the explanation.


As said in the Contributors guide:

Even tiny pull requests (e.g., one character pull request fixing a typo in API documentation) are greatly appreciated

馃槅

The example uses `Duration::from_secs(1)` and the explanation says something about 300ms, which does not match.
Use "1s" instead in the explanation.
Copy link
Contributor

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

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

Thanks for noticing the mistake!

@Darksonn Darksonn added A-tokio Area: The main tokio crate M-time Module: tokio/time T-docs Topic: documentation labels Apr 8, 2021
@Darksonn Darksonn merged commit 5513b6b into tokio-rs:master Apr 8, 2021
@matthiasbeyer matthiasbeyer deleted the patch-1 branch April 8, 2021 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate M-time Module: tokio/time T-docs Topic: documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants