summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2022-03-19 22:11:20 -0600
committerAlan Somers <asomers@gmail.com>2022-03-19 22:13:46 -0600
commit70f614fbd6a8c17c0b05e3e65f282c8dbbd73abe (patch)
tree269db686e132c4be853d486d1ea0a12dd715922d
parent445a4387ada6e71e226aaf9d6087174bd5102843 (diff)
downloadnix-70f614fbd6a8c17c0b05e3e65f282c8dbbd73abe.zip
[skip ci] spellcheck a comment for sethostname
-rw-r--r--src/unistd.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unistd.rs b/src/unistd.rs
index 8da4f932..272fb0cd 100644
--- a/src/unistd.rs
+++ b/src/unistd.rs
@@ -943,8 +943,8 @@ feature! {
///
/// Given a name, attempt to update the system host name to the given string.
/// On some systems, the host name is limited to as few as 64 bytes. An error
-/// will be return if the name is not valid or the current process does not have
-/// permissions to update the host name.
+/// will be returned if the name is not valid or the current process does not
+/// have permissions to update the host name.
#[cfg(not(target_os = "redox"))]
pub fn sethostname<S: AsRef<OsStr>>(name: S) -> Result<()> {
// Handle some differences in type of the len arg across platforms.