about summary refs log tree commit diff
path: root/library/std/src/io/error.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/io/error.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/io/error.rs')
-rw-r--r--library/std/src/io/error.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/io/error.rs b/library/std/src/io/error.rs
index 30bc0e3b088..5aa048c4cbc 100644
--- a/library/std/src/io/error.rs
+++ b/library/std/src/io/error.rs
@@ -83,7 +83,7 @@ impl Error {
 
     pub(crate) const UNKNOWN_THREAD_COUNT: Self = const_error!(
         ErrorKind::NotFound,
-        "The number of hardware threads is not known for the target platform",
+        "the number of hardware threads is not known for the target platform",
     );
 
     pub(crate) const UNSUPPORTED_PLATFORM: Self =