env docs completion.

This commit is contained in:
Dylan Maccora 2017-06-10 16:19:28 +10:00
parent 55d75c42ef
commit f52ac18840
1 changed files with 11 additions and 9 deletions

View File

@ -367,7 +367,7 @@ fn _remove_var(k: &OsStr) {
/// An iterator that splits an environment variable into paths according to /// An iterator that splits an environment variable into paths according to
/// platform-specific conventions. /// platform-specific conventions.
/// ///
/// This structure is created by the [`std::env::split_paths`] function See its /// This structure is created by the [`std::env::split_paths`] function. See its
/// documentation for more. /// documentation for more.
/// ///
/// [`std::env::split_paths`]: fn.split_paths.html /// [`std::env::split_paths`]: fn.split_paths.html
@ -605,14 +605,15 @@ pub fn current_exe() -> io::Result<PathBuf> {
os_imp::current_exe() os_imp::current_exe()
} }
/// An iterator over the arguments of a process, yielding a [`String`] value /// An iterator over the arguments of a process, yielding a [`String`] value for
/// for each argument. /// each argument.
/// ///
/// This structure is created through the [`std::env::args`] function. /// This struct is created by the [`std::env::args`] function. See its
/// documentation for more.
/// ///
/// The first element is traditionally the path of the executable, but it can be /// The first element is traditionally the path of the executable, but it can be
/// set to arbitrary text, and may not even exist. This means this property should /// set to arbitrary text, and may not even exist. This means this property
/// not be relied upon for security purposes. /// should not be relied upon for security purposes.
/// ///
/// [`String`]: ../string/struct.String.html /// [`String`]: ../string/struct.String.html
/// [`std::env::args`]: ./fn.args.html /// [`std::env::args`]: ./fn.args.html
@ -622,11 +623,12 @@ pub struct Args { inner: ArgsOs }
/// An iterator over the arguments of a process, yielding an [`OsString`] value /// An iterator over the arguments of a process, yielding an [`OsString`] value
/// for each argument. /// for each argument.
/// ///
/// This structure is created through the [`std::env::args_os`] function. /// This struct is created by the [`std::env::args_os`] function. See its
/// documentation for more.
/// ///
/// The first element is traditionally the path of the executable, but it can be /// The first element is traditionally the path of the executable, but it can be
/// set to arbitrary text, and may not even exist. This means this property should /// set to arbitrary text, and may not even exist. This means this property
/// not be relied upon for security purposes. /// should not be relied upon for security purposes.
/// ///
/// [`OsString`]: ../ffi/struct.OsString.html /// [`OsString`]: ../ffi/struct.OsString.html
/// [`std::env::args_os`]: ./fn.args_os.html /// [`std::env::args_os`]: ./fn.args_os.html