Skip to content

Commit 8b37670

Browse files
josh-nevil
authored andcommitted
Fix documentation for mutating funcs in URL (swiftlang#1555)
1 parent 3063d7d commit 8b37670

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Foundation/URL.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ public struct URL : ReferenceConvertible, Equatable {
819819
self = appendingPathExtension(pathExtension)
820820
}
821821

822-
/// Returns a URL constructed by removing the last path component of self.
822+
/// Removes the last path component from self.
823823
///
824824
/// This function may either remove a path component or append `/..`.
825825
///
@@ -829,7 +829,7 @@ public struct URL : ReferenceConvertible, Equatable {
829829
}
830830

831831

832-
/// Returns a URL constructed by removing any path extension.
832+
/// Removes any path extension from self.
833833
///
834834
/// If the URL has an empty path (e.g., `http://www.example.com`), then this function will do nothing.
835835
public mutating func deletePathExtension() {

0 commit comments

Comments
 (0)