File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11import Cocoa
22
3- public func palindromeCheck ( text: String ? ) -> Bool {
3+ public func palindromeCheck( text: String ? ) -> Bool {
44 if let text = text {
5- let mutableText = text. trimmingCharacters ( in: NSCharacterSet . whitespaces ( ) ) . lowercased ( )
5+ let mutableText = text. trimmingCharacters ( in: NSCharacterSet . whitespaces) . lowercased ( )
66 let length : Int = mutableText. characters. count
77
88 guard length >= 1 else {
Original file line number Diff line number Diff line change 11import Cocoa
22
3- public func palindromeCheck ( text: String ? ) -> Bool {
3+ public func palindromeCheck( text: String ? ) -> Bool {
44 if let text = text {
5- let mutableText = text. trimmingCharacters ( in: NSCharacterSet . whitespaces ( ) ) . lowercased ( )
5+ let mutableText = text. trimmingCharacters ( in: NSCharacterSet . whitespaces) . lowercased ( )
66 let length : Int = mutableText. characters. count
77
88 guard length >= 1 else {
You can’t perform that action at this time.
0 commit comments