From 20a3e7e4b8de8efab6be18b6d89e43ed84f6c4e7 Mon Sep 17 00:00:00 2001 From: Arfon Smith Date: Mon, 26 Jan 2015 16:12:20 -0600 Subject: [PATCH] Update docs --- lib/linguist/strategy/modeline.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/linguist/strategy/modeline.rb b/lib/linguist/strategy/modeline.rb index 69fe0d79..8e13c829 100644 --- a/lib/linguist/strategy/modeline.rb +++ b/lib/linguist/strategy/modeline.rb @@ -9,8 +9,8 @@ module Linguist # # Modeline.call(FileBlob.new("path/to/file")) # - # Returns an Array with one Language if the blob has a shebang with a valid - # interpreter, or empty if there is no shebang. + # Returns an Array with one Language if the blob has a Vim or Emacs modeline + # that matches a Language name or alias. Returns an empty array if no match. def self.call(blob, _ = nil) if language = Language.find_by_alias(modeline(blob.data)) return [language]