about summary refs log tree commit diff
path: root/library/std/src/os/unix/net/addr.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-07-30 04:34:13 +0000
committerbors <bors@rust-lang.org>2021-07-30 04:34:13 +0000
commitfe1c942eee3489743d655d81ca89166217db0547 (patch)
tree093f237e01769880448c5220665ea3d192d56e78 /library/std/src/os/unix/net/addr.rs
parente66a8c260c0bcc4e7a8943f01d75d70ff640fb38 (diff)
parentffcf8a0d7681bb5038dc00479d824d9e20f5f989 (diff)
downloadrust-fe1c942eee3489743d655d81ca89166217db0547.tar.gz
rust-fe1c942eee3489743d655d81ca89166217db0547.zip
Auto merge of #87445 - amalik18:issue-83584-fix, r=kennytm
Fix may not to appropriate might not or must not

I went through and changed occurrences of `may not` to be more explicit with `might not` and `must not`.
Diffstat (limited to 'library/std/src/os/unix/net/addr.rs')
-rw-r--r--library/std/src/os/unix/net/addr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/os/unix/net/addr.rs b/library/std/src/os/unix/net/addr.rs
index 459f3590e64..62bfde8bfd4 100644
--- a/library/std/src/os/unix/net/addr.rs
+++ b/library/std/src/os/unix/net/addr.rs
@@ -31,7 +31,7 @@ pub(super) unsafe fn sockaddr_un(path: &Path) -> io::Result<(libc::sockaddr_un,
     if bytes.contains(&0) {
         return Err(io::Error::new_const(
             io::ErrorKind::InvalidInput,
-            &"paths may not contain interior null bytes",
+            &"paths must not contain interior null bytes",
         ));
     }