File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ impl bool {
5454 /// // `then`.
5555 /// assert_eq!(a, 1);
5656 /// ```
57+ #[ doc( alias = "then_with" ) ]
5758 #[ stable( feature = "lazy_bool_to_option" , since = "1.50.0" ) ]
5859 #[ cfg_attr( not( test) , rustc_diagnostic_item = "bool_then" ) ]
5960 #[ inline]
Original file line number Diff line number Diff line change @@ -597,6 +597,13 @@ impl Error for JoinPathsError {
597597
598598/// Returns the path of the current user's home directory if known.
599599///
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+ ///
600607/// # Unix
601608///
602609/// - Returns the value of the 'HOME' environment variable if it is set
You can’t perform that action at this time.
0 commit comments