Skip to content

Commit 93a4d2d

Browse files
committed
updating README
1 parent 5fe31ff commit 93a4d2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Palindromes/README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Here is a recursive implementation of this in Swift:
2626
```swift
2727
func isPalindrome(_ str: String) -> Bool {
2828
let strippedString = str.replacingOccurrences(of: "\\W", with: "", options: .regularExpression, range: nil)
29-
let length = strippedString.characters.count
29+
let length = strippedString.count
3030

3131
if length > 1 {
3232
return palindrome(strippedString.lowercased(), left: 0, right: length - 1)

0 commit comments

Comments
 (0)