We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1acf27c + 70f614f commit b2ff9d2Copy full SHA for b2ff9d2
src/unistd.rs
@@ -943,8 +943,8 @@ feature! {
943
///
944
/// Given a name, attempt to update the system host name to the given string.
945
/// On some systems, the host name is limited to as few as 64 bytes. An error
946
-/// will be return if the name is not valid or the current process does not have
947
-/// 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.
948
#[cfg(not(target_os = "redox"))]
949
pub fn sethostname<S: AsRef<OsStr>>(name: S) -> Result<()> {
950
// Handle some differences in type of the len arg across platforms.
0 commit comments