From 947127c31d5f688c386cfc0216ded757e44eb8ea Mon Sep 17 00:00:00 2001 From: SN <52325722+SNMellott@users.noreply.github.com> Date: Fri, 5 Jun 2020 15:44:17 -0400 Subject: [PATCH] Implemented correct code All tests pass with the added line of code. --- anagram_detector.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/anagram_detector.rb b/anagram_detector.rb index 36c0724..793a389 100644 --- a/anagram_detector.rb +++ b/anagram_detector.rb @@ -1,5 +1,6 @@ # Implement this in such a way that when called below, detect_anagram will result in true or false. def canonical(word) + word.downcase.chars.sort end def detect_anagram(word1, word2)