Skip to content

Commit 2fa2678

Browse files
authored
Merge pull request #69 from amartini51/docs/develop
Minor fixes in documentation comments
2 parents 689390f + 0c291a6 commit 2fa2678

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

Sources/System/FilePath/FilePath.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/// encoding.
1717
///
1818
/// On construction, `FilePath` will normalize separators by removing
19-
/// reduncant intermediary separators and stripping any trailing separators.
19+
/// redundant intermediary separators and stripping any trailing separators.
2020
/// On Windows, `FilePath` will also normalize forward slashes `/` into
2121
/// backslashes `\`, as preferred by the platform.
2222
///
@@ -29,7 +29,7 @@
2929
/// try fd.closeAfter { try fd.writeAll(message.utf8) }
3030
///
3131
/// File paths conform to the
32-
/// and <doc://com.apple.documentation/documentation/swift/equatable>
32+
/// <doc://com.apple.documentation/documentation/swift/equatable>
3333
/// and <doc://com.apple.documentation/documentation/swift/hashable> protocols
3434
/// by performing the protocols' operations on their raw byte contents.
3535
/// This conformance allows file paths to be used,

Sources/System/FilePath/FilePathSyntax.swift

+7-6
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ extension FilePath {
442442
// @available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
443443
extension FilePath {
444444
/// If `prefix` is a prefix of `self`, removes it and returns `true`.
445-
/// Otherwise returns `false`.
445+
/// Otherwise returns `false`.
446446
///
447447
/// Example:
448448
///
@@ -503,10 +503,11 @@ extension FilePath {
503503
/// A leading separator is spurious if `self` is non-empty.
504504
///
505505
/// Example:
506-
/// var path: FilePath = ""
507-
/// path.append("/var/www/website") // "/var/www/website"
508-
/// path.append("static/assets") // "/var/www/website/static/assets"
509-
/// path.append("/main.css") // "/var/www/website/static/assets/main.css"
506+
///
507+
/// var path: FilePath = ""
508+
/// path.append("/var/www/website") // "/var/www/website"
509+
/// path.append("static/assets") // "/var/www/website/static/assets"
510+
/// path.append("/main.css") // "/var/www/website/static/assets/main.css"
510511
///
511512
// TODO(Windows docs): example with roots, should we rephrase this "spurious
512513
// roots"?
@@ -576,7 +577,7 @@ extension FilePath {
576577
_append(unchecked: other._storage[...])
577578
}
578579

579-
/// Non-mutating version of `push()`
580+
/// Non-mutating version of `push()`.
580581
///
581582
// TODO(Windows docs): examples and docs with roots
582583
public __consuming func pushing(_ other: __owned FilePath) -> FilePath {

0 commit comments

Comments
 (0)