Skip to content

Commit 346d54d

Browse files
authored
Rollup merge of #76344 - camelid:patch-6, r=KodrAus
Improve docs for `std::env::args()` @rustbot modify labels: T-doc
2 parents 1db9290 + 85b11d5 commit 346d54d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

library/std/src/env.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -695,21 +695,21 @@ pub struct ArgsOs {
695695
inner: sys::args::Args,
696696
}
697697

698-
/// Returns the arguments which this program was started with (normally passed
698+
/// Returns the arguments that this program was started with (normally passed
699699
/// via the command line).
700700
///
701701
/// The first element is traditionally the path of the executable, but it can be
702702
/// set to arbitrary text, and may not even exist. This means this property should
703703
/// not be relied upon for security purposes.
704704
///
705-
/// On Unix systems shell usually expands unquoted arguments with glob patterns
705+
/// On Unix systems the shell usually expands unquoted arguments with glob patterns
706706
/// (such as `*` and `?`). On Windows this is not done, and such arguments are
707707
/// passed as-is.
708708
///
709-
/// On glibc Linux systems, arguments are retrieved by placing a function in ".init_array".
710-
/// Glibc passes argc, argv, and envp to functions in ".init_array", as a non-standard extension.
711-
/// This allows `std::env::args` to work even in a `cdylib` or `staticlib`, as it does on macOS
712-
/// and Windows.
709+
/// On glibc Linux systems, arguments are retrieved by placing a function in `.init_array`.
710+
/// Glibc passes `argc`, `argv`, and `envp` to functions in `.init_array`, as a non-standard
711+
/// extension. This allows `std::env::args` to work even in a `cdylib` or `staticlib`, as it
712+
/// does on macOS and Windows.
713713
///
714714
/// # Panics
715715
///

0 commit comments

Comments
 (0)