We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acabb52 commit c74ede8Copy full SHA for c74ede8
library/std/src/env.rs
@@ -597,6 +597,13 @@ impl Error for JoinPathsError {
597
598
/// Returns the path of the current user's home directory if known.
599
///
600
+/// This may return `None` if getting the directory fails or if the platform does not have user home directories.
601
+///
602
+/// For storing user data and configuration it is often preferable to use more specific directories.
603
+/// For example, [XDG Base Directories] on Unix or the `LOCALAPPDATA` and `APPDATA` environment variables on Windows.
604
605
+/// [XDG Base Directories]: https://specifications.freedesktop.org/basedir-spec/latest/
606
607
/// # Unix
608
609
/// - Returns the value of the 'HOME' environment variable if it is set
0 commit comments