1
Fork 0

Stabilize Command::envs

Closes #38526
This commit is contained in:
Steven Fackler 2017-06-08 11:31:25 -04:00
parent bc9822af2e
commit 14c2f99f80
3 changed files with 1 additions and 6 deletions

View file

@ -447,8 +447,6 @@ impl Command {
/// Basic usage:
///
/// ```no_run
/// #![feature(command_envs)]
///
/// use std::process::{Command, Stdio};
/// use std::env;
/// use std::collections::HashMap;
@ -466,7 +464,7 @@ impl Command {
/// .spawn()
/// .expect("printenv failed to start");
/// ```
#[unstable(feature = "command_envs", issue = "38526")]
#[stable(feature = "command_envs", since = "1.19.0")]
pub fn envs<I, K, V>(&mut self, vars: I) -> &mut Command
where I: IntoIterator<Item=(K, V)>, K: AsRef<OsStr>, V: AsRef<OsStr>
{