about summary refs log tree commit diff
path: root/library/std/src/env.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-02-25 07:43:16 +0000
committerGitHub <noreply@github.com>2025-02-25 07:43:16 +0000
commitcfb827804fb9ee5bd93f8373ef4b9afbc5b0a38b (patch)
tree379f598e24bdd72753363bd43e7af456ed20c186 /library/std/src/env.rs
parent913612c59e35e6c85182c55a5f7bface4a828a32 (diff)
parent40ba5d25465dc63bff3e3b13b6e592dad8be8435 (diff)
downloadrust-cfb827804fb9ee5bd93f8373ef4b9afbc5b0a38b.tar.gz
rust-cfb827804fb9ee5bd93f8373ef4b9afbc5b0a38b.zip
Merge pull request #4206 from RalfJung/rustup
Rustup
Diffstat (limited to 'library/std/src/env.rs')
-rw-r--r--library/std/src/env.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/library/std/src/env.rs b/library/std/src/env.rs
index adbd6889624..4a071b4e1fa 100644
--- a/library/std/src/env.rs
+++ b/library/std/src/env.rs
@@ -668,7 +668,9 @@ pub fn home_dir() -> Option<PathBuf> {
 /// On Unix, returns the value of the `TMPDIR` environment variable if it is
 /// set, otherwise the value is OS-specific:
 /// - On Android, there is no global temporary folder (it is usually allocated
-///   per-app), it returns `/data/local/tmp`.
+///   per-app), it will return the application's cache dir if the program runs
+///   in application's namespace and system version is Android 13 (or above), or
+///   `/data/local/tmp` otherwise.
 /// - On Darwin-based OSes (macOS, iOS, etc) it returns the directory provided
 ///   by `confstr(_CS_DARWIN_USER_TEMP_DIR, ...)`, as recommended by [Apple's
 ///   security guidelines][appledoc].