Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions library/std/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,8 @@ pub struct VarsOs {
/// # Examples
///
/// ```
/// use std::env;
///
/// // We will iterate through the references to the element returned by
/// // env::vars();
/// for (key, value) in env::vars() {
/// // Print all environment variables.
/// for (key, value) in std::env::vars() {
/// println!("{key}: {value}");
/// }
/// ```
Expand All @@ -150,11 +147,8 @@ pub fn vars() -> Vars {
/// # Examples
///
/// ```
/// use std::env;
///
/// // We will iterate through the references to the element returned by
/// // env::vars_os();
/// for (key, value) in env::vars_os() {
/// // Print all environment variables.
/// for (key, value) in std::env::vars_os() {
/// println!("{key:?}: {value:?}");
/// }
/// ```
Expand Down