Skip to content

Commit

Permalink
Fix a copy-paste error in Instant::sub_duration
Browse files Browse the repository at this point in the history
Fixes #41514.
  • Loading branch information
tbu- committed Apr 24, 2017
1 parent 63c7721 commit 957d51a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/sys/unix/time.rs
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 957d51a

Please sign in to comment.