summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorNathaniel Daniel <nathaniel.daniel12@gmail.com>2022-06-14 19:38:17 -0700
committerNathaniel Daniel <nathaniel.daniel12@gmail.com>2022-06-27 19:48:14 -0700
commit356ecce5cd196afe533d881d888856fd41fe624e (patch)
tree093b52eb3e75ed5cf6297a7cd356ec1a109c87dd /README.md
parent0922fd99e7c8cbe7334754d712e8450c29d3d8e7 (diff)
downloadnix-356ecce5cd196afe533d881d888856fd41fe624e.zip
Change gethostname to use a buffer of MaybeUninit values
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 44e620cc..04f9bd61 100644
--- a/README.md
+++ b/README.md
@@ -25,7 +25,7 @@ call:
pub unsafe extern fn gethostname(name: *mut c_char, len: size_t) -> c_int;
// nix api (returns a nix::Result<CStr>)
-pub fn gethostname<'a>(buffer: &'a mut [u8]) -> Result<&'a CStr>;
+pub fn gethostname<'a>(buffer: &'a mut [mem::MaybeUninit<u8>]) -> Result<&'a CStr>;
```
## Supported Platforms