Skip to content

Commit d3acedf

Browse files
committed
making isPalindrome(_:) public
1 parent e9ed794 commit d3acedf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Palindromes/Palindromes.playground/Sources/Palindrome.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Foundation
55
- parameter str: The string to validate
66
- returns: `true` if string is plaindrome, `false` if string is not
77
*/
8-
func isPalindrome(_ str: String) -> Bool {
8+
public func isPalindrome(_ str: String) -> Bool {
99
let strippedString = str.replacingOccurrences(of: "\\W", with: "", options: .regularExpression, range: nil)
1010
let length = strippedString.count
1111

0 commit comments

Comments
 (0)