Skip to content

Fix doc: Let comment match example - #3685

Merged
Darksonn merged 1 commit into
tokio-rs:masterfrom
matthiasbeyer:patch-1
Apr 8, 2021
Merged

Fix doc: Let comment match example#3685
Darksonn merged 1 commit into
tokio-rs:masterfrom
matthiasbeyer:patch-1

Conversation

@matthiasbeyer

Copy link
Copy Markdown
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.

@Darksonn Darksonn left a comment

Copy link
Copy Markdown
Member

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.

2 participants