From b7ab3fa37c4437cd154672bfc3b96f68b392123c Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Sat, 15 Jun 2024 16:59:39 +0200 Subject: [PATCH] Path::absolute: improve doc readability --- library/std/src/path.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/library/std/src/path.rs b/library/std/src/path.rs index adbcdcd2e67e3..ef80e8516b9d8 100644 --- a/library/std/src/path.rs +++ b/library/std/src/path.rs @@ -3345,12 +3345,12 @@ impl Error for StripPrefixError { /// Makes the path absolute without accessing the filesystem. /// /// If the path is relative, the current directory is used as the base directory. -/// All intermediate components will be resolved according to platforms-specific -/// rules but unlike [`canonicalize`][crate::fs::canonicalize] this does not -/// resolve symlinks and may succeed even if the path does not exist. +/// All intermediate components will be resolved according to platform-specific +/// rules, but unlike [`canonicalize`][crate::fs::canonicalize], this does not +/// resolve symlinks, and may succeed even if the path does not exist. /// -/// If the `path` is empty or getting the -/// [current directory][crate::env::current_dir] fails then an error will be +/// If the `path` is empty, or getting the +/// [current directory][crate::env::current_dir] fails, then an error will be /// returned. /// /// # Examples