Skip to content

Commit

Permalink
Expand home_dir docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton authored and gitbot committed Feb 20, 2025
1 parent abc978e commit 00006b3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions std/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,13 @@ impl Error for JoinPathsError {

/// Returns the path of the current user's home directory if known.
///
/// This may return `None` if getting the directory fails or if the platform does not have user home directories.
///
/// For storing user data and configuration it is often preferable to use more specific directories.
/// For example, [XDG Base Directories] on Unix or the `LOCALAPPDATA` and `APPDATA` environment variables on Windows.
///
/// [XDG Base Directories]: https://specifications.freedesktop.org/basedir-spec/latest/
///
/// # Unix
///
/// - Returns the value of the 'HOME' environment variable if it is set
Expand Down

0 comments on commit 00006b3

Please sign in to comment.