Skip to content

Commit 47d38bc

Browse files
committed
RFC 1040 is: Duration Reform
1 parent e91d14c commit 47d38bc

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ the direction the language is evolving in.
5252
* [0979-align-splitn-with-other-languages.md](text/0979-align-splitn-with-other-languages.md)
5353
* [1011-process.exit.md](text/1011-process.exit.md)
5454
* [1023-rebalancing-coherence.md](text/1023-rebalancing-coherence.md)
55+
* [1040-duration-reform.md](text/1040/duration-reform.md)
5556
* [1044-io-fs-2.1.md](text/1044-io-fs-2.1.md)
5657

5758
## Table of Contents

text/0000-duration-reform.md renamed to text/1040-duration-reform.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
- Feature Name: Duration Reform
1+
- Feature Name: duration
22
- Start Date: 2015-03-24
3-
- RFC PR: (leave this empty)
4-
- Rust Issue: (leave this empty)
3+
- RFC PR: https://github.com/rust-lang/rfcs/pull/1040
4+
- Rust Issue: https://github.com/rust-lang/rust/issues/24874
55

66
# Summary
77

@@ -109,10 +109,10 @@ In general, this RFC assumes that timeout APIs permit spurious updates (see, for
109109
* `Add`, `Sub`, `Mul`, `Div` which follow the overflow and underflow
110110
rules for `u64` when applied to the `secs` field (in particular,
111111
`Sub` will panic if the result would be negative). Nanoseconds
112-
must be less than 1 billion and great than or equal to 0, and carry
112+
must be less than 1 billion and great than or equal to 0, and carry
113113
into the `secs` field.
114114
* `Display`, which prints a number of seconds, milliseconds and
115-
nanoseconds (if more than 0). For example, a `Duration` would be
115+
nanoseconds (if more than 0). For example, a `Duration` would be
116116
represented as `"15 seconds, 306 milliseconds, and 13 nanoseconds"`
117117
* `Debug`, `Ord` (and `PartialOrd`), `Eq` (and `PartialEq`), `Copy`
118118
and `Clone`, which are derived.

0 commit comments

Comments
 (0)