@@ -416,7 +416,7 @@ impl Error for JoinPathsError {
416
416
fn description ( & self ) -> & str { self . inner . description ( ) }
417
417
}
418
418
419
- /// Returns the path to the current user's home directory if known.
419
+ /// Returns the path of the current user's home directory if known.
420
420
///
421
421
/// # Unix
422
422
///
@@ -450,7 +450,7 @@ pub fn home_dir() -> Option<PathBuf> {
450
450
os_imp:: home_dir ( )
451
451
}
452
452
453
- /// Returns the path to a temporary directory.
453
+ /// Returns the path of a temporary directory.
454
454
///
455
455
/// On Unix, returns the value of the 'TMPDIR' environment variable if it is
456
456
/// set, otherwise for non-Android it returns '/tmp'. If Android, since there
@@ -459,7 +459,7 @@ pub fn home_dir() -> Option<PathBuf> {
459
459
///
460
460
/// On Windows, returns the value of, in order, the 'TMP', 'TEMP',
461
461
/// 'USERPROFILE' environment variable if any are set and not the empty
462
- /// string. Otherwise, tmpdir returns the path to the Windows directory. This
462
+ /// string. Otherwise, tmpdir returns the path of the Windows directory. This
463
463
/// behavior is identical to that of [GetTempPath][msdn], which this function
464
464
/// uses internally.
465
465
///
@@ -482,14 +482,14 @@ pub fn temp_dir() -> PathBuf {
482
482
os_imp:: temp_dir ( )
483
483
}
484
484
485
- /// Returns the full filesystem path to the current running executable.
485
+ /// Returns the full filesystem path of the current running executable.
486
486
///
487
- /// The path returned is not necessarily a "real path" to the executable as
487
+ /// The path returned is not necessarily a "real path" of the executable as
488
488
/// there may be intermediate symlinks.
489
489
///
490
490
/// # Errors
491
491
///
492
- /// Acquiring the path to the current executable is a platform-specific operation
492
+ /// Acquiring the path of the current executable is a platform-specific operation
493
493
/// that can fail for a good number of reasons. Some errors can include, but not
494
494
/// be limited to, filesystem operations failing or general syscall failures.
495
495
///
@@ -526,7 +526,7 @@ pub struct ArgsOs { inner: os_imp::Args }
526
526
/// Returns the arguments which this program was started with (normally passed
527
527
/// via the command line).
528
528
///
529
- /// The first element is traditionally the path to the executable, but it can be
529
+ /// The first element is traditionally the path of the executable, but it can be
530
530
/// set to arbitrary text, and may not even exist. This means this property should
531
531
/// not be relied upon for security purposes.
532
532
///
@@ -554,7 +554,7 @@ pub fn args() -> Args {
554
554
/// Returns the arguments which this program was started with (normally passed
555
555
/// via the command line).
556
556
///
557
- /// The first element is traditionally the path to the executable, but it can be
557
+ /// The first element is traditionally the path of the executable, but it can be
558
558
/// set to arbitrary text, and it may not even exist, so this property should
559
559
/// not be relied upon for security purposes.
560
560
///
0 commit comments