Rollup merge of #125348 - tbu-:pr_doc_path_absolute, r=jhpratt

Small fixes to `std::path::absolute` docs
This commit is contained in:
Matthias Krüger 2024-05-21 12:47:07 +02:00 committed by GitHub
commit e6e05d51ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 3 deletions

View File

@ -3323,7 +3323,7 @@ impl Error for StripPrefixError {
///
/// # Examples
///
/// ## Posix paths
/// ## POSIX paths
///
/// ```
/// # #[cfg(unix)]
@ -3369,9 +3369,12 @@ impl Error for StripPrefixError {
/// ```
///
/// For verbatim paths this will simply return the path as given. For other
/// paths this is currently equivalent to calling [`GetFullPathNameW`][windows-path]
/// This may change in the future.
/// paths this is currently equivalent to calling
/// [`GetFullPathNameW`][windows-path].
///
/// Note that this [may change in the future][changes].
///
/// [changes]: io#platform-specific-behavior
/// [posix-semantics]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13
/// [windows-path]: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfullpathnamew
#[stable(feature = "absolute_path", since = "1.79.0")]