Skip to content

Commit f52ac18

Browse files
committed
env docs completion.
1 parent 55d75c4 commit f52ac18

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/libstd/env.rs

+11-9
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ fn _remove_var(k: &OsStr) {
367367
/// An iterator that splits an environment variable into paths according to
368368
/// platform-specific conventions.
369369
///
370-
/// This structure is created by the [`std::env::split_paths`] function See its
370+
/// This structure is created by the [`std::env::split_paths`] function. See its
371371
/// documentation for more.
372372
///
373373
/// [`std::env::split_paths`]: fn.split_paths.html
@@ -605,14 +605,15 @@ pub fn current_exe() -> io::Result<PathBuf> {
605605
os_imp::current_exe()
606606
}
607607

608-
/// An iterator over the arguments of a process, yielding a [`String`] value
609-
/// for each argument.
608+
/// An iterator over the arguments of a process, yielding a [`String`] value for
609+
/// each argument.
610610
///
611-
/// This structure is created through the [`std::env::args`] function.
611+
/// This struct is created by the [`std::env::args`] function. See its
612+
/// documentation for more.
612613
///
613614
/// The first element is traditionally the path of the executable, but it can be
614-
/// set to arbitrary text, and may not even exist. This means this property should
615-
/// not be relied upon for security purposes.
615+
/// set to arbitrary text, and may not even exist. This means this property
616+
/// should not be relied upon for security purposes.
616617
///
617618
/// [`String`]: ../string/struct.String.html
618619
/// [`std::env::args`]: ./fn.args.html
@@ -622,11 +623,12 @@ pub struct Args { inner: ArgsOs }
622623
/// An iterator over the arguments of a process, yielding an [`OsString`] value
623624
/// for each argument.
624625
///
625-
/// This structure is created through the [`std::env::args_os`] function.
626+
/// This struct is created by the [`std::env::args_os`] function. See its
627+
/// documentation for more.
626628
///
627629
/// The first element is traditionally the path of the executable, but it can be
628-
/// set to arbitrary text, and may not even exist. This means this property should
629-
/// not be relied upon for security purposes.
630+
/// set to arbitrary text, and may not even exist. This means this property
631+
/// should not be relied upon for security purposes.
630632
///
631633
/// [`OsString`]: ../ffi/struct.OsString.html
632634
/// [`std::env::args_os`]: ./fn.args_os.html

0 commit comments

Comments
 (0)