File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -590,6 +590,10 @@ pub fn current_exe() -> io::Result<PathBuf> {
590
590
///
591
591
/// This structure is created through the [`std::env::args`] function.
592
592
///
593
+ /// The first element is traditionally the path of the executable, but it can be
594
+ /// set to arbitrary text, and may not even exist. This means this property should
595
+ /// not be relied upon for security purposes.
596
+ ///
593
597
/// [`String`]: ../string/struct.String.html
594
598
/// [`std::env::args`]: ./fn.args.html
595
599
#[ stable( feature = "env" , since = "1.0.0" ) ]
@@ -600,6 +604,10 @@ pub struct Args { inner: ArgsOs }
600
604
///
601
605
/// This structure is created through the [`std::env::args_os`] function.
602
606
///
607
+ /// The first element is traditionally the path of the executable, but it can be
608
+ /// set to arbitrary text, and may not even exist. This means this property should
609
+ /// not be relied upon for security purposes.
610
+ ///
603
611
/// [`OsString`]: ../ffi/struct.OsString.html
604
612
/// [`std::env::args_os`]: ./fn.args_os.html
605
613
#[ stable( feature = "env" , since = "1.0.0" ) ]
You can’t perform that action at this time.
0 commit comments