1
Fork 0

Clarify error phrase in sub_instant function

Uses the same wording as [`src/libstd/sys/windows/time.rs`][1].

1: 95e2bf253d/src/libstd/sys/windows/time.rs (L65)
This commit is contained in:
Claudio Bley 2018-06-04 08:58:55 +02:00
parent 95e2bf253d
commit 33c4b37d00
2 changed files with 2 additions and 2 deletions

View file

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