Skip to content

Commit

Permalink
slightly refactored the counter variable inside the palindrome counte…
Browse files Browse the repository at this point in the history
…r class
  • Loading branch information
giusepped committed Nov 28, 2015
1 parent c98de48 commit dc0c34c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/palindrome_counter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def count(start, finish)
end

def check_palindrome(string)
return true if string == string.reverse
string == string.reverse
end

# Since I had a bit of time left and noticed that the program was slowing down a bit
Expand Down

0 comments on commit dc0c34c

Please sign in to comment.