We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
sub_instant
1 parent 95e2bf2 commit 33c4b37Copy full SHA for 33c4b37
src/libstd/sys/redox/time.rs
@@ -144,7 +144,7 @@ impl Instant {
144
145
pub fn sub_instant(&self, other: &Instant) -> Duration {
146
self.t.sub_timespec(&other.t).unwrap_or_else(|_| {
147
- panic!("other was less than the current instant")
+ panic!("specified instant was later than self")
148
})
149
}
150
src/libstd/sys/unix/time.rs
@@ -289,7 +289,7 @@ mod inner {
289
290
291
292
- panic!("other was greater than the current instant")
293
294
295
0 commit comments