Skip to content

Commit 8347450

Browse files
committed
libstd: improve os::args() doc
1 parent 1e4e55a commit 8347450

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libstd/os.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1083,6 +1083,10 @@ extern "system" {
10831083
/// Returns the arguments which this program was started with (normally passed
10841084
/// via the command line).
10851085
///
1086+
/// The first element is traditionally the path to the executable, but it can be
1087+
/// set to arbitrary text, and it may not even exist, so this property should not
1088+
// be relied upon for security purposes.
1089+
///
10861090
/// The arguments are interpreted as utf-8, with invalid bytes replaced with \uFFFD.
10871091
/// See `String::from_utf8_lossy` for details.
10881092
/// # Example

0 commit comments

Comments
 (0)