Bit of docs

This commit is contained in:
Ted Nyman
2013-12-14 18:51:34 -08:00
parent 7c636c4f65
commit 6bd97c7fc7

View File

@@ -123,6 +123,7 @@ module Linguist
elsif (result = find_by_shebang(data)) && !result.empty?
result.first
elsif classified = Classifier.classify(Samples::DATA, data, possible_languages.map(&:name)).first
# Return the actual Language object based of the string language name (i.e., first element of `#classify`)
Language[classified[0]]
end
else