]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #40794 - s3rvac:fix-formatting-in-command-envs-docs, r=steveklabnik
authorCorey Farwell <coreyf@rwell.org>
Fri, 24 Mar 2017 23:13:15 +0000 (18:13 -0500)
committerGitHub <noreply@github.com>
Fri, 24 Mar 2017 23:13:15 +0000 (18:13 -0500)
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.

src/libstd/process.rs

index 7a85e58866236ad5d10d28bf7ba75ccb90f4320b..d46cf7a26daf06aa5a17b0ebe5d3a724f4d88d00 100644 (file)
@@ -437,7 +437,10 @@ pub fn env<K, V>(&mut self, key: K, val: V) -> &mut Command
     /// # Examples
     ///
     /// Basic usage:
+    ///
     /// ```no_run
+    /// #![feature(command_envs)]
+    ///
     /// use std::process::{Command, Stdio};
     /// use std::env;
     /// use std::collections::HashMap;