Skip to content

Commit 270b999

Browse files
Stargateurm-ou-se
andauthored
Update library/std/src/sys/unix/time.rs
Co-authored-by: Mara Bos <[email protected]>
1 parent 1eb1559 commit 270b999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/unix/time.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ impl Timespec {
7777
if tv_nsec >= 0 && tv_nsec < NSEC_PER_SEC as i64 {
7878
Ok(unsafe { Self::new_unchecked(tv_sec, tv_nsec) })
7979
} else {
80-
Err(io::const_io_error!(io::ErrorKind::Other, "Invalid time for nanosecond"))
80+
Err(io::const_io_error!(io::ErrorKind::InvalidData, "Invalid timestamp"))
8181
}
8282
}
8383

0 commit comments

Comments
 (0)