From 78847afcd4f3361d780b1e19062c8bfa9140c2a7 Mon Sep 17 00:00:00 2001 From: Alex Martini Date: Wed, 9 Jun 2021 13:43:34 -0700 Subject: [PATCH 1/4] Remove stray word. --- Sources/System/FilePath/FilePath.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/System/FilePath/FilePath.swift b/Sources/System/FilePath/FilePath.swift index 1b57a434..b7177400 100644 --- a/Sources/System/FilePath/FilePath.swift +++ b/Sources/System/FilePath/FilePath.swift @@ -29,7 +29,7 @@ /// try fd.closeAfter { try fd.writeAll(message.utf8) } /// /// File paths conform to the -/// and +/// /// and protocols /// by performing the protocols' operations on their raw byte contents. /// This conformance allows file paths to be used, From d2c4e4507aa34e6a28a0fd557b398e960c976bff Mon Sep 17 00:00:00 2001 From: Alex Martini Date: Tue, 22 Jun 2021 20:24:14 -0700 Subject: [PATCH 2/4] Fix spacing and indentation. --- Sources/System/FilePath/FilePathSyntax.swift | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Sources/System/FilePath/FilePathSyntax.swift b/Sources/System/FilePath/FilePathSyntax.swift index 693b326e..b3e8eca0 100644 --- a/Sources/System/FilePath/FilePathSyntax.swift +++ b/Sources/System/FilePath/FilePathSyntax.swift @@ -442,7 +442,7 @@ extension FilePath { // @available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) extension FilePath { /// If `prefix` is a prefix of `self`, removes it and returns `true`. - /// Otherwise returns `false`. + /// Otherwise returns `false`. /// /// Example: /// @@ -503,10 +503,11 @@ extension FilePath { /// A leading separator is spurious if `self` is non-empty. /// /// Example: - /// var path: FilePath = "" - /// path.append("/var/www/website") // "/var/www/website" - /// path.append("static/assets") // "/var/www/website/static/assets" - /// path.append("/main.css") // "/var/www/website/static/assets/main.css" + /// + /// var path: FilePath = "" + /// path.append("/var/www/website") // "/var/www/website" + /// path.append("static/assets") // "/var/www/website/static/assets" + /// path.append("/main.css") // "/var/www/website/static/assets/main.css" /// // TODO(Windows docs): example with roots, should we rephrase this "spurious // roots"? From 0ac080ea562c6b5e9afde0f169754763b9e8694a Mon Sep 17 00:00:00 2001 From: Alex Martini Date: Wed, 23 Jun 2021 16:05:55 -0700 Subject: [PATCH 3/4] Add missing period at end of abstract. --- Sources/System/FilePath/FilePathSyntax.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/System/FilePath/FilePathSyntax.swift b/Sources/System/FilePath/FilePathSyntax.swift index b3e8eca0..b9f20fef 100644 --- a/Sources/System/FilePath/FilePathSyntax.swift +++ b/Sources/System/FilePath/FilePathSyntax.swift @@ -577,7 +577,7 @@ extension FilePath { _append(unchecked: other._storage[...]) } - /// Non-mutating version of `push()` + /// Non-mutating version of `push()`. /// // TODO(Windows docs): examples and docs with roots public __consuming func pushing(_ other: __owned FilePath) -> FilePath { From 0c291a65c2588125b224656cd4c572ad903482eb Mon Sep 17 00:00:00 2001 From: Alex Martini Date: Mon, 8 Nov 2021 19:43:49 -0800 Subject: [PATCH 4/4] Fix typo. Fixes . --- Sources/System/FilePath/FilePath.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/System/FilePath/FilePath.swift b/Sources/System/FilePath/FilePath.swift index b7177400..c2797f5e 100644 --- a/Sources/System/FilePath/FilePath.swift +++ b/Sources/System/FilePath/FilePath.swift @@ -16,7 +16,7 @@ /// encoding. /// /// On construction, `FilePath` will normalize separators by removing -/// reduncant intermediary separators and stripping any trailing separators. +/// redundant intermediary separators and stripping any trailing separators. /// On Windows, `FilePath` will also normalize forward slashes `/` into /// backslashes `\`, as preferred by the platform. ///