Skip to content

Commit 3bc7fc1

Browse files
committed
Rollup merge of rust-lang#33580 - frewsxcv:temp-dir, r=alexcrichton
Cleanup formatting and wording for `std::env::temp_dir` docs. None
2 parents 0238e29 + 6458b04 commit 3bc7fc1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/libstd/env.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -452,16 +452,16 @@ pub fn home_dir() -> Option<PathBuf> {
452452

453453
/// Returns the path of a temporary directory.
454454
///
455-
/// On Unix, returns the value of the 'TMPDIR' environment variable if it is
456-
/// set, otherwise for non-Android it returns '/tmp'. If Android, since there
457-
/// is no global temporary folder (it is usually allocated per-app), we return
458-
/// '/data/local/tmp'.
459-
///
460-
/// On Windows, returns the value of, in order, the 'TMP', 'TEMP',
461-
/// 'USERPROFILE' environment variable if any are set and not the empty
462-
/// string. Otherwise, tmpdir returns the path of the Windows directory. This
463-
/// behavior is identical to that of [GetTempPath][msdn], which this function
464-
/// uses internally.
455+
/// On Unix, returns the value of the `TMPDIR` environment variable if it is
456+
/// set, otherwise for non-Android it returns `/tmp`. If Android, since there
457+
/// is no global temporary folder (it is usually allocated per-app), it returns
458+
/// `/data/local/tmp`.
459+
///
460+
/// On Windows, returns the value of, in order, the `TMP`, `TEMP`,
461+
/// `USERPROFILE` environment variable if any are set and not the empty
462+
/// string. Otherwise, `temp_dir` returns the path of the Windows directory.
463+
/// This behavior is identical to that of [`GetTempPath`][msdn], which this
464+
/// function uses internally.
465465
///
466466
/// [msdn]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa364992(v=vs.85).aspx
467467
///

0 commit comments

Comments
 (0)