Skip to content

Add Timespec comment and assert about negative nsec #4575

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

Merged
merged 1 commit into from
Jan 22, 2013
Merged

Add Timespec comment and assert about negative nsec #4575

merged 1 commit into from
Jan 22, 2013

Conversation

cpeterso
Copy link
Contributor

I added the comment about negative nsec that @catamorphism asked for in pull request #4519.

I also added an nsec range assert to Timespec::new(). If a user really wants a Timespec with an out-of-range nsec, they can allocate the Timespec directly without calling new().

catamorphism added a commit that referenced this pull request Jan 22, 2013
Add Timespec comment and assert about negative nsec
@catamorphism catamorphism merged commit 0c276da into rust-lang:incoming Jan 22, 2013
@catamorphism
Copy link
Contributor

Thanks!

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.

2 participants