File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ impl bool {
54
54
/// // `then`.
55
55
/// assert_eq!(a, 1);
56
56
/// ```
57
+ #[ doc( alias = "then_with" ) ]
57
58
#[ stable( feature = "lazy_bool_to_option" , since = "1.50.0" ) ]
58
59
#[ cfg_attr( not( test) , rustc_diagnostic_item = "bool_then" ) ]
59
60
#[ inline]
Original file line number Diff line number Diff line change @@ -597,6 +597,13 @@ impl Error for JoinPathsError {
597
597
598
598
/// Returns the path of the current user's home directory if known.
599
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
+ ///
600
607
/// # Unix
601
608
///
602
609
/// - Returns the value of the 'HOME' environment variable if it is set
You can’t perform that action at this time.
0 commit comments