Skip to content

Commit dcab7e7

Browse files
[gardening] Use "*" instead of "•"
1 parent cc47c70 commit dcab7e7

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

stdlib/public/SDK/Foundation/URL.swift

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -711,10 +711,10 @@ public struct URL : ReferenceConvertible, CustomStringConvertible, Equatable {
711711
// TODO: Use URLComponents to handle an empty-path case
712712
/*
713713
URLByAppendingPathComponent can return nil if:
714-
the URL does not have a path component. (see note 1)
715-
a mutable copy of the URLs string could not be created.
716-
a percent-encoded string of the new path component could not created using the same encoding as the URL's string. (see note 2)
717-
a new URL object could not be created with the modified URL string.
714+
* the URL does not have a path component. (see note 1)
715+
* a mutable copy of the URLs string could not be created.
716+
* a percent-encoded string of the new path component could not created using the same encoding as the URL's string. (see note 2)
717+
* a new URL object could not be created with the modified URL string.
718718

719719
Note 1: If NS/CFURL parsed URLs correctly, this would not occur because URL strings always have a path component. For example, the URL <mailto:[email protected]> should be parsed as Scheme=“mailto”, and Path= “[email protected]". Instead, CFURL returns false for CFURLCanBeDecomposed(), says Scheme=“mailto”, Path=nil, and ResourceSpecifier=“[email protected]”. rdar://problem/15060399
720720

@@ -742,10 +742,10 @@ public struct URL : ReferenceConvertible, CustomStringConvertible, Equatable {
742742
public func deletingLastPathComponent() throws -> URL {
743743
/*
744744
URLByDeletingLastPathComponent can return nil if:
745-
the URL is a file reference URL which cannot be resolved back to a path.
746-
the URL does not have a path component. (see note 1)
747-
a mutable copy of the URLs string could not be created.
748-
a new URL object could not be created with the modified URL string.
745+
* the URL is a file reference URL which cannot be resolved back to a path.
746+
* the URL does not have a path component. (see note 1)
747+
* a mutable copy of the URLs string could not be created.
748+
* a new URL object could not be created with the modified URL string.
749749
*/
750750
if let result = _url.deletingLastPathComponent.map({ URL(reference: $0 as NSURL) }) {
751751
return result
@@ -762,12 +762,12 @@ public struct URL : ReferenceConvertible, CustomStringConvertible, Equatable {
762762
public func appendingPathExtension(_ pathExtension: String) throws -> URL {
763763
/*
764764
URLByAppendingPathExtension can return nil if:
765-
the new path extension is not a valid extension (see _CFExtensionIsValidToAppend)
766-
the URL is a file reference URL which cannot be resolved back to a path.
767-
the URL does not have a path component. (see note 1)
768-
a mutable copy of the URLs string could not be created.
769-
a percent-encoded string of the new path extension could not created using the same encoding as the URL's string. (see note 1))
770-
a new URL object could not be created with the modified URL string.
765+
* the new path extension is not a valid extension (see _CFExtensionIsValidToAppend)
766+
* the URL is a file reference URL which cannot be resolved back to a path.
767+
* the URL does not have a path component. (see note 1)
768+
* a mutable copy of the URLs string could not be created.
769+
* a percent-encoded string of the new path extension could not created using the same encoding as the URL's string. (see note 1))
770+
* a new URL object could not be created with the modified URL string.
771771
*/
772772
guard let result = _url.appendingPathExtension(pathExtension) else {
773773
throw NSError(domain: NSCocoaErrorDomain, code: NSFileReadUnknownError, userInfo: [:])
@@ -781,10 +781,10 @@ public struct URL : ReferenceConvertible, CustomStringConvertible, Equatable {
781781
public func deletingPathExtension() throws -> URL {
782782
/*
783783
URLByDeletingPathExtension can return nil if:
784-
the URL is a file reference URL which cannot be resolved back to a path.
785-
the URL does not have a path component. (see note 1)
786-
a mutable copy of the URLs string could not be created.
787-
a new URL object could not be created with the modified URL string.
784+
* the URL is a file reference URL which cannot be resolved back to a path.
785+
* the URL does not have a path component. (see note 1)
786+
* a mutable copy of the URLs string could not be created.
787+
* a new URL object could not be created with the modified URL string.
788788
*/
789789
if let result = _url.deletingPathExtension.map({ URL(reference: $0 as NSURL) }) {
790790
return result
@@ -801,8 +801,8 @@ public struct URL : ReferenceConvertible, CustomStringConvertible, Equatable {
801801
public func standardizingPath() throws -> URL {
802802
/*
803803
URLByStandardizingPath can return nil if:
804-
the URL is a file reference URL which cannot be resolved back to a path.
805-
a new URL object could not be created with the standardized path).
804+
* the URL is a file reference URL which cannot be resolved back to a path.
805+
* a new URL object could not be created with the standardized path).
806806
*/
807807
if let result = _url.standardizingPath.map({ URL(reference: $0 as NSURL) }) {
808808
return result
@@ -819,9 +819,9 @@ public struct URL : ReferenceConvertible, CustomStringConvertible, Equatable {
819819
public func resolvingSymlinksInPath() throws -> URL {
820820
/*
821821
URLByResolvingSymlinksInPath can return nil if:
822-
the URL is a file reference URL which cannot be resolved back to a path.
823-
NSPathUtilities' stringByResolvingSymlinksInPath property returns nil.
824-
a new URL object could not be created with the resolved path).
822+
* the URL is a file reference URL which cannot be resolved back to a path.
823+
* NSPathUtilities' stringByResolvingSymlinksInPath property returns nil.
824+
* a new URL object could not be created with the resolved path).
825825
*/
826826
if let result = _url.resolvingSymlinksInPath.map({ URL(reference: $0 as NSURL) }) {
827827
return result

0 commit comments

Comments
 (0)