]> git.lizzy.rs Git - rust.git/commitdiff
Add a missing feature attribute to the example for std::process::Command::envs().
authorPetr Zemek <s3rvac@gmail.com>
Fri, 24 Mar 2017 14:47:45 +0000 (15:47 +0100)
committerPetr Zemek <s3rvac@gmail.com>
Fri, 24 Mar 2017 14:47:45 +0000 (15:47 +0100)
The person who originally wrote the example forgot to include this attribute.
This caused Travis CI to fail on commit 9b0a4a4e97 (#40794), which just fixed
formatting in the description of std::process::Command::envs().

src/libstd/process.rs

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