@@ -546,17 +546,23 @@ pub fn current_exe() -> io::Result<PathBuf> {
546
546
os_imp:: current_exe ( )
547
547
}
548
548
549
- /// An iterator over the arguments of a process, yielding a `String` value
549
+ /// An iterator over the arguments of a process, yielding a [ `String`] value
550
550
/// for each argument.
551
551
///
552
- /// This structure is created through the `std::env::args` method.
552
+ /// This structure is created through the [`std::env::args`] method.
553
+ ///
554
+ /// [`String`]: ../string/struct.String.html
555
+ /// [`std::env::args`]: ./fn.args.html
553
556
#[ stable( feature = "env" , since = "1.0.0" ) ]
554
557
pub struct Args { inner : ArgsOs }
555
558
556
- /// An iterator over the arguments of a process, yielding an `OsString` value
559
+ /// An iterator over the arguments of a process, yielding an [ `OsString`] value
557
560
/// for each argument.
558
561
///
559
- /// This structure is created through the `std::env::args_os` method.
562
+ /// This structure is created through the [`std::env::args_os`] method.
563
+ ///
564
+ /// [`OsString`]: ../ffi/struct.OsString.html
565
+ /// [`std::env::args_os`]: ./fn.args_os.html
560
566
#[ stable( feature = "env" , since = "1.0.0" ) ]
561
567
pub struct ArgsOs { inner : sys:: args:: Args }
562
568
@@ -571,7 +577,7 @@ pub struct ArgsOs { inner: sys::args::Args }
571
577
///
572
578
/// The returned iterator will panic during iteration if any argument to the
573
579
/// process is not valid unicode. If this is not desired,
574
- /// use the `args_os` function instead.
580
+ /// use the [ `args_os`] function instead.
575
581
///
576
582
/// # Examples
577
583
///
@@ -583,6 +589,8 @@ pub struct ArgsOs { inner: sys::args::Args }
583
589
/// println!("{}", argument);
584
590
/// }
585
591
/// ```
592
+ ///
593
+ /// [`args_os`]: ./fn.args_os.html
586
594
#[ stable( feature = "env" , since = "1.0.0" ) ]
587
595
pub fn args ( ) -> Args {
588
596
Args { inner : args_os ( ) }
0 commit comments