1
Fork 0

Fix a copy-paste error in Instant::sub_duration

Fixes #41514.
This commit is contained in:
Tobias Bucher 2017-04-25 01:02:59 +02:00
parent 63c77214c1
commit 957d51aecb

View file

@ -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"),
}
}
}