summaryrefslogtreecommitdiff
path: root/lib/did_you_mean/formatter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/did_you_mean/formatter.rb')
-rw-r--r--lib/did_you_mean/formatter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/did_you_mean/formatter.rb b/lib/did_you_mean/formatter.rb
index 01eb59100a..02c0bc75d3 100644
--- a/lib/did_you_mean/formatter.rb
+++ b/lib/did_you_mean/formatter.rb
@@ -26,7 +26,7 @@ module DidYouMean
#
# # => nil
#
- def message_for(corrections)
+ def self.message_for(corrections)
corrections.empty? ? "" : "\nDid you mean? #{corrections.join("\n ")}"
end
end