Skip to content

Commit 0566e13

Browse files
authored
Rollup merge of rust-lang#40794 - s3rvac:fix-formatting-in-command-envs-docs, r=steveklabnik
Fix formatting in the docs for std::process::Command::envs() An empty line between the *Basic usage:* text and the example is required to properly format the code. Without the empty line, the example is not formatted as code. [Here](https://doc.rust-lang.org/std/process/struct.Command.html#method.envs) you can see the current (improper) formatting.
2 parents eb6f09c + 432673a commit 0566e13

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libstd/process.rs

+3
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,10 @@ impl Command {
437437
/// # Examples
438438
///
439439
/// Basic usage:
440+
///
440441
/// ```no_run
442+
/// #![feature(command_envs)]
443+
///
441444
/// use std::process::{Command, Stdio};
442445
/// use std::env;
443446
/// use std::collections::HashMap;

0 commit comments

Comments
 (0)