Skip to content

Commit

Permalink
Rollup merge of rust-lang#40794 - s3rvac:fix-formatting-in-command-en…
Browse files Browse the repository at this point in the history
…vs-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.
  • Loading branch information
frewsxcv authored Mar 24, 2017
2 parents eb6f09c + 432673a commit 0566e13
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libstd/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,10 @@ impl Command {
/// # Examples
///
/// Basic usage:
///
/// ```no_run
/// #![feature(command_envs)]
///
/// use std::process::{Command, Stdio};
/// use std::env;
/// use std::collections::HashMap;
Expand Down

0 comments on commit 0566e13

Please sign in to comment.