Skip to content

Commit 348c1b0

Browse files
joshtriplettAmanieu
andcommitted
Apply suggestions from code review
Link `Command::current_dir`. Co-authored-by: Amanieu d'Antras <[email protected]>
1 parent 17fdf19 commit 348c1b0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

library/std/src/os/unix/process.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,12 @@ pub trait CommandExt: Sealed {
202202
/// Set the root of the child process. This calls `chroot` in the child process before executing
203203
/// the command.
204204
///
205-
/// This happens before changing to the directory specified with `Command::current_dir`, and
206-
/// that directory will be relative to the new root.
205+
/// This happens before changing to the directory specified with
206+
/// [`process::Command::current_dir`], and that directory will be relative to the new root.
207207
///
208-
/// If no directory has been specified with `Command::current_dir`, this will set the directory
209-
/// to `/`, to avoid leaving the current directory outside the chroot. (This is an intentional
210-
/// difference from the underlying `chroot` system call.)
208+
/// If no directory has been specified with [`process::Command::current_dir`], this will set the
209+
/// directory to `/`, to avoid leaving the current directory outside the chroot. (This is an
210+
/// intentional difference from the underlying `chroot` system call.)
211211
#[unstable(feature = "process_chroot", issue = "141298")]
212212
fn chroot<P: AsRef<Path>>(&mut self, dir: P) -> &mut process::Command;
213213
}

0 commit comments

Comments
 (0)