Skip to content

Commit 1a6ff67

Browse files
authored
Rollup merge of rust-lang#95306 - est31:master, r=Dylan-DPC
std::process docs: linkify references to output, spawn and status
2 parents baae344 + 8c0e6a8 commit 1a6ff67

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

Diff for: library/std/src/process.rs

+20-7
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,11 @@ impl Command {
525525
/// * No arguments to the program
526526
/// * Inherit the current process's environment
527527
/// * Inherit the current process's working directory
528-
/// * Inherit stdin/stdout/stderr for `spawn` or `status`, but create pipes for `output`
528+
/// * Inherit stdin/stdout/stderr for [`spawn`] or [`status`], but create pipes for [`output`]
529+
///
530+
/// [`spawn`]: Self::spawn
531+
/// [`status`]: Self::status
532+
/// [`output`]: Self::output
529533
///
530534
/// Builder methods are provided to change these defaults and
531535
/// otherwise configure the process.
@@ -772,11 +776,14 @@ impl Command {
772776

773777
/// Configuration for the child process's standard input (stdin) handle.
774778
///
775-
/// Defaults to [`inherit`] when used with `spawn` or `status`, and
776-
/// defaults to [`piped`] when used with `output`.
779+
/// Defaults to [`inherit`] when used with [`spawn`] or [`status`], and
780+
/// defaults to [`piped`] when used with [`output`].
777781
///
778782
/// [`inherit`]: Stdio::inherit
779783
/// [`piped`]: Stdio::piped
784+
/// [`spawn`]: Self::spawn
785+
/// [`status`]: Self::status
786+
/// [`output`]: Self::output
780787
///
781788
/// # Examples
782789
///
@@ -798,11 +805,14 @@ impl Command {
798805

799806
/// Configuration for the child process's standard output (stdout) handle.
800807
///
801-
/// Defaults to [`inherit`] when used with `spawn` or `status`, and
802-
/// defaults to [`piped`] when used with `output`.
808+
/// Defaults to [`inherit`] when used with [`spawn`] or [`status`], and
809+
/// defaults to [`piped`] when used with [`output`].
803810
///
804811
/// [`inherit`]: Stdio::inherit
805812
/// [`piped`]: Stdio::piped
813+
/// [`spawn`]: Self::spawn
814+
/// [`status`]: Self::status
815+
/// [`output`]: Self::output
806816
///
807817
/// # Examples
808818
///
@@ -824,11 +834,14 @@ impl Command {
824834

825835
/// Configuration for the child process's standard error (stderr) handle.
826836
///
827-
/// Defaults to [`inherit`] when used with `spawn` or `status`, and
828-
/// defaults to [`piped`] when used with `output`.
837+
/// Defaults to [`inherit`] when used with [`spawn`] or [`status`], and
838+
/// defaults to [`piped`] when used with [`output`].
829839
///
830840
/// [`inherit`]: Stdio::inherit
831841
/// [`piped`]: Stdio::piped
842+
/// [`spawn`]: Self::spawn
843+
/// [`status`]: Self::status
844+
/// [`output`]: Self::output
832845
///
833846
/// # Examples
834847
///

0 commit comments

Comments
 (0)