diff options
| author | Tobias Bucher <tobiasbucher5991@gmail.com> | 2017-04-25 01:02:59 +0200 |
|---|---|---|
| committer | Tobias Bucher <tobiasbucher5991@gmail.com> | 2017-04-25 01:02:59 +0200 |
| commit | 957d51aecb3eb4960129b38b147cff0b8d0fae5c (patch) | |
| tree | 7d4c44199f65cc6bc91e1cd496bbb5f546c5cc37 /src/libstd/sys/unix/time.rs | |
| parent | 63c77214c1d38789652b465694b254205d1886e0 (diff) | |
| download | rust-957d51aecb3eb4960129b38b147cff0b8d0fae5c.tar.gz rust-957d51aecb3eb4960129b38b147cff0b8d0fae5c.zip | |
Fix a copy-paste error in `Instant::sub_duration`
Fixes #41514.
Diffstat (limited to 'src/libstd/sys/unix/time.rs')
| -rw-r--r-- | src/libstd/sys/unix/time.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/unix/time.rs b/src/libstd/sys/unix/time.rs index a08cec38f73..a1ad94872de 100644 --- a/src/libstd/sys/unix/time.rs +++ b/src/libstd/sys/unix/time.rs @@ -157,7 +157,7 @@ mod inner { pub fn sub_duration(&self, other: &Duration) -> Instant { Instant { t: self.t.checked_sub(dur2intervals(other)) - .expect("overflow when adding duration to instant"), + .expect("overflow when subtracting duration from instant"), } } } |
