Skip to content

Commit 9f71a49

Browse files
authored
wordsmithing on sched::clone
1 parent 4402a02 commit 9f71a49

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/sched.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,10 @@ mod sched_linux_like {
180180
/// ([`clone(2)`](https://man7.org/linux/man-pages/man2/clone.2.html))
181181
///
182182
/// `stack` is a reference to an array which will hold the stack of the new
183-
/// process. Contrary to colling `clone(2)` from C, where the provided
184-
/// stack address must be the highest address of the memory region, this is
185-
/// not needed here. This requirement will be taken care of by `nix` and
186-
/// the user only needs to provide a reference to a normally allocated
187-
/// buffer.
183+
/// process. Unlike when calling `clone(2)` from C, the provided stack
184+
/// address need not be the highest address of the region. Nix will take
185+
/// care of that requirement. The user only needs to provide a reference to
186+
/// a normally allocated buffer.
188187
pub fn clone(
189188
mut cb: CloneCb,
190189
stack: &mut [u8],

0 commit comments

Comments
 (0)