We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1eb1559 commit 270b999Copy full SHA for 270b999
library/std/src/sys/unix/time.rs
@@ -77,7 +77,7 @@ impl Timespec {
77
if tv_nsec >= 0 && tv_nsec < NSEC_PER_SEC as i64 {
78
Ok(unsafe { Self::new_unchecked(tv_sec, tv_nsec) })
79
} else {
80
- Err(io::const_io_error!(io::ErrorKind::Other, "Invalid time for nanosecond"))
+ Err(io::const_io_error!(io::ErrorKind::InvalidData, "Invalid timestamp"))
81
}
82
83
0 commit comments