Skip to content

Commit b24892b

Browse files
authored
rename hasPrefix(_ prefix: String) -> Bool to hasSuffix(_ suffix: String) -> Bool (swiftlang#37336)
1 parent 7f4a1d5 commit b24892b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/StringProtocol.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public protocol StringProtocol
4343
var unicodeScalars: UnicodeScalarView { get }
4444

4545
func hasPrefix(_ prefix: String) -> Bool
46-
func hasSuffix(_ prefix: String) -> Bool
46+
func hasSuffix(_ suffix: String) -> Bool
4747

4848
func lowercased() -> String
4949
func uppercased() -> String

0 commit comments

Comments
 (0)