Skip to content

Commit

Permalink
Rollup merge of rust-lang#41518 - tbu-:pr_fix_cp_error, r=sfackler
Browse files Browse the repository at this point in the history
Fix a copy-paste error in `Instant::sub_duration`

Fixes rust-lang#41514.
  • Loading branch information
frewsxcv authored Apr 25, 2017
2 parents f2ebe4c + 957d51a commit c63aca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/sys/unix/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
}
}
}
Expand Down

0 comments on commit c63aca0

Please sign in to comment.