about summary refs log tree commit diff
path: root/library/std/src/sys/pal/unix/time.rs
diff options
context:
space:
mode:
authorNoratrieb <48135649+Noratrieb@users.noreply.github.com>2025-02-28 17:50:38 +0100
committerNoratrieb <48135649+Noratrieb@users.noreply.github.com>2025-02-28 17:50:38 +0100
commitcdef38812dd4de2a3fa3b3512b64c28c278ff7cc (patch)
tree9aa3454c84879fc62e6b52ff96b729655555dfda /library/std/src/sys/pal/unix/time.rs
parent2f581937e1c06adb4607df1b571c0bef6d98e6ec (diff)
downloadrust-cdef38812dd4de2a3fa3b3512b64c28c278ff7cc.tar.gz
rust-cdef38812dd4de2a3fa3b3512b64c28c278ff7cc.zip
Use correct error message casing for `io::const_error`s
Error messages are supposed to start with lowercase letters, but a lot
of `io::const_error` messages did not. This fixes them to start with a
lowercase letter.
I did consider adding a const check for this to the macro, but some of
them start with proper nouns that make sense to uppercase them.

See https://doc.rust-lang.org/1.85.0/std/error/trait.Error.html
Diffstat (limited to 'library/std/src/sys/pal/unix/time.rs')
-rw-r--r--library/std/src/sys/pal/unix/time.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/pal/unix/time.rs b/library/std/src/sys/pal/unix/time.rs
index e224980e95f..0271626380c 100644
--- a/library/std/src/sys/pal/unix/time.rs
+++ b/library/std/src/sys/pal/unix/time.rs
@@ -92,7 +92,7 @@ impl Timespec {
         if tv_nsec >= 0 && tv_nsec < NSEC_PER_SEC as i64 {
             Ok(unsafe { Self::new_unchecked(tv_sec, tv_nsec) })
         } else {
-            Err(io::const_error!(io::ErrorKind::InvalidData, "Invalid timestamp"))
+            Err(io::const_error!(io::ErrorKind::InvalidData, "invalid timestamp"))
         }
     }