Skip to content

Commit 0c599cb

Browse files
committed
Improve documentation
1 parent bee136f commit 0c599cb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/bootstrap/src/utils/exec.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ pub enum OutputMode {
3434
/// By default, the command will print its stdout/stderr to stdout/stderr of bootstrap
3535
/// ([OutputMode::OnlyOutput]). If bootstrap uses verbose mode, then it will also print the
3636
/// command itself in case of failure ([OutputMode::All]).
37-
/// If you want to handle the output programmatically, use `output_mode(OutputMode::OnlyOnFailure)`.
37+
/// If you want to handle the output programmatically, use `output_mode(OutputMode::OnlyOnFailure)`,
38+
/// which will print the output only if the command fails.
3839
///
3940
/// [allow_failure]: BootstrapCommand::allow_failure
4041
/// [delay_failure]: BootstrapCommand::delay_failure
@@ -113,7 +114,7 @@ impl BootstrapCommand {
113114
}
114115
}
115116

116-
/// This implementation is temporary, until all `Command` invocations are migrated to
117+
/// FIXME: This implementation is temporary, until all `Command` invocations are migrated to
117118
/// `BootstrapCommand`.
118119
impl<'a> From<&'a mut Command> for BootstrapCommand {
119120
fn from(command: &'a mut Command) -> Self {
@@ -138,7 +139,7 @@ impl<'a> From<&'a mut Command> for BootstrapCommand {
138139
}
139140
}
140141

141-
/// This implementation is temporary, until all `Command` invocations are migrated to
142+
/// FIXME: This implementation is temporary, until all `Command` invocations are migrated to
142143
/// `BootstrapCommand`.
143144
impl<'a> From<&'a mut BootstrapCommand> for BootstrapCommand {
144145
fn from(command: &'a mut BootstrapCommand) -> Self {

0 commit comments

Comments
 (0)