Skip to content

Commit f6b4e39

Browse files
author
Jakub Bukaj
committed
rollup merge of #18944: liigo/improve-os-args-doc
2 parents 0191b49 + 8347450 commit f6b4e39

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libstd/os.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,6 +1108,10 @@ extern "system" {
11081108
/// Returns the arguments which this program was started with (normally passed
11091109
/// via the command line).
11101110
///
1111+
/// The first element is traditionally the path to the executable, but it can be
1112+
/// set to arbitrary text, and it may not even exist, so this property should not
1113+
// be relied upon for security purposes.
1114+
///
11111115
/// The arguments are interpreted as utf-8, with invalid bytes replaced with \uFFFD.
11121116
/// See `String::from_utf8_lossy` for details.
11131117
/// # Example

0 commit comments

Comments
 (0)