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 @@ impl ErrorKind { 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",