From 861f3c70a27d007ed8113fe776aa393d8e25faa0 Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Mon, 31 Jan 2022 09:17:34 -0800 Subject: [PATCH] Fix description of FilenameInvalid Co-authored-by: Mara Bos --- library/std/src/io/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/io/error.rs b/library/std/src/io/error.rs index c55f3c19ab6..90766d4acef 100644 --- a/library/std/src/io/error.rs +++ b/library/std/src/io/error.rs @@ -382,7 +382,7 @@ pub(crate) fn as_str(&self) -> &'static str { DirectoryNotEmpty => "directory not empty", ExecutableFileBusy => "executable file busy", FileTooLarge => "file too large", - FilenameInvalid => "filename too long", + FilenameInvalid => "filename invalid", FilesystemLoop => "filesystem loop or indirection limit (e.g. symlink loop)", FilesystemQuotaExceeded => "filesystem quota exceeded", HostUnreachable => "host unreachable",