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

typo in std::thread::sleep #54644

Closed
vn971 opened this issue Sep 28, 2018 · 1 comment
Closed

typo in std::thread::sleep #54644

vn971 opened this issue Sep 28, 2018 · 1 comment

Comments

@vn971
Copy link
Contributor

vn971 commented Sep 28, 2018

The documentation says: https://doc.rust-lang.org/std/thread/fn.sleep.html

... function will not return early due to a signal being received or a spurious wakeup.

Is that a typo? The function CAN return early right? (due to the reasons outlined)

I can make a fixing PR after confirmation.
UPD: Made a PR as well.

@vn971 vn971 changed the title typo in std::thread::sleep ? typo in std::thread::sleep Sep 28, 2018
@dtolnay
Copy link
Member

dtolnay commented Oct 1, 2018

Let's continue with the improvements in #54646, but based on #54646 (comment) this sentence was accurate.

@dtolnay dtolnay closed this as completed Oct 1, 2018
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