Skip to content

Commit 33d3376

Browse files
Apply suggestions from code review
Link `Command::current_dir`. Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
1 parent 17fdf19 commit 33d3376

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,10 @@ 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
205+
/// This happens before changing to the directory specified with [`Command::current_dir`], and
206206
/// 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
208+
/// If no directory has been specified with [`Command::current_dir`], this will set the directory
209209
/// to `/`, to avoid leaving the current directory outside the chroot. (This is an intentional
210210
/// difference from the underlying `chroot` system call.)
211211
#[unstable(feature = "process_chroot", issue = "141298")]

0 commit comments

Comments
 (0)