diff options
author | Alan Somers <asomers@gmail.com> | 2021-06-12 11:38:57 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-12 11:38:57 -0600 |
commit | 9f71a4921e8a12af037e8fd80f3a2d1de663de0b (patch) | |
tree | d4d587c08cdda9799b6bc838a7735a96b0c4cfb6 /src | |
parent | 4402a02f14cf647341b8616ba060c9dfa66561e1 (diff) | |
download | nix-9f71a4921e8a12af037e8fd80f3a2d1de663de0b.zip |
wordsmithing on sched::clone
Diffstat (limited to 'src')
-rw-r--r-- | src/sched.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/sched.rs b/src/sched.rs index f851618a..9dc49c61 100644 --- a/src/sched.rs +++ b/src/sched.rs @@ -180,11 +180,10 @@ mod sched_linux_like { /// ([`clone(2)`](https://man7.org/linux/man-pages/man2/clone.2.html)) /// /// `stack` is a reference to an array which will hold the stack of the new - /// process. Contrary to colling `clone(2)` from C, where the provided - /// stack address must be the highest address of the memory region, this is - /// not needed here. This requirement will be taken care of by `nix` and - /// the user only needs to provide a reference to a normally allocated - /// buffer. + /// process. Unlike when calling `clone(2)` from C, the provided stack + /// address need not be the highest address of the region. Nix will take + /// care of that requirement. The user only needs to provide a reference to + /// a normally allocated buffer. pub fn clone( mut cb: CloneCb, stack: &mut [u8], |