Skip to content

Commit de7b4aa

Browse files
author
Ariel Ben-Yehuda
authored
Rollup merge of rust-lang#41518 - tbu-:pr_fix_cp_error, r=sfackler
Fix a copy-paste error in `Instant::sub_duration` Fixes rust-lang#41514.
2 parents 2885f04 + 957d51a commit de7b4aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sys/unix/time.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ mod inner {
157157
pub fn sub_duration(&self, other: &Duration) -> Instant {
158158
Instant {
159159
t: self.t.checked_sub(dur2intervals(other))
160-
.expect("overflow when adding duration to instant"),
160+
.expect("overflow when subtracting duration from instant"),
161161
}
162162
}
163163
}

0 commit comments

Comments
 (0)