Fix typos

This commit is contained in:
Max Horn
2014-09-15 13:20:09 +02:00
parent c204d7c297
commit 54a7cf6785
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ module Linguist
end end
end end
# .h extensions are ambigious between C, C++, and Objective-C. # .h extensions are ambiguous between C, C++, and Objective-C.
# We want to shortcut look for Objective-C _and_ now C++ too! # We want to shortcut look for Objective-C _and_ now C++ too!
# #
# Returns an array of Languages or [] # Returns an array of Languages or []

View File

@@ -135,7 +135,7 @@ module Linguist
# No shebang. Still more work to do. Try to find it with our heuristics. # No shebang. Still more work to do. Try to find it with our heuristics.
elsif (determined = Heuristics.find_by_heuristics(data, possible_language_names)) && !determined.empty? elsif (determined = Heuristics.find_by_heuristics(data, possible_language_names)) && !determined.empty?
determined.first determined.first
# Lastly, fall back to the probablistic classifier. # Lastly, fall back to the probabilistic classifier.
elsif classified = Classifier.classify(Samples::DATA, data, possible_language_names).first elsif classified = Classifier.classify(Samples::DATA, data, possible_language_names).first
# Return the actual Language object based of the string language name (i.e., first element of `#classify`) # Return the actual Language object based of the string language name (i.e., first element of `#classify`)
Language[classified[0]] Language[classified[0]]