Skip to content

Commit

Permalink
Rollup merge of rust-lang#125348 - tbu-:pr_doc_path_absolute, r=jhpratt
Browse files Browse the repository at this point in the history
Small fixes to `std::path::absolute` docs
  • Loading branch information
matthiaskrgr authored May 21, 2024
2 parents fd975f7 + f6cf103 commit e6e05d5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions library/std/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3323,7 +3323,7 @@ impl Error for StripPrefixError {
///
/// # Examples
///
/// ## Posix paths
/// ## POSIX paths
///
/// ```
/// # #[cfg(unix)]
Expand Down Expand Up @@ -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")]
Expand Down

0 comments on commit e6e05d5

Please sign in to comment.