Skip to content

Commit

Permalink
Clarify error phrase in sub_instant function
Browse files Browse the repository at this point in the history
  • Loading branch information
avdv committed Jun 4, 2018
1 parent 95e2bf2 commit 33c4b37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libstd/sys/redox/time.rs
Expand Up @@ -144,7 +144,7 @@ impl Instant {

pub fn sub_instant(&self, other: &Instant) -> Duration {
self.t.sub_timespec(&other.t).unwrap_or_else(|_| {
panic!("other was less than the current instant")
panic!("specified instant was later than self")
})
}

Expand Down
2 changes: 1 addition & 1 deletion src/libstd/sys/unix/time.rs
Expand Up @@ -289,7 +289,7 @@ mod inner {

pub fn sub_instant(&self, other: &Instant) -> Duration {
self.t.sub_timespec(&other.t).unwrap_or_else(|_| {
panic!("other was greater than the current instant")
panic!("specified instant was later than self")
})
}

Expand Down

0 comments on commit 33c4b37

Please sign in to comment.