Skip to content

Commit 7560265

Browse files
committed
Fix incorrect test in time::tests::system_time_math.
1 parent 8410ca6 commit 7560265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/time/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ mod tests {
509509
let dur = dur.duration();
510510
assert!(a > b);
511511
assert_almost_eq!(b + dur, a);
512-
assert_almost_eq!(b - dur, a);
512+
assert_almost_eq!(a - dur, b);
513513
}
514514
}
515515

0 commit comments

Comments
 (0)