summaryrefslogtreecommitdiff
path: root/lib/coderay.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/coderay.rb')
-rw-r--r--lib/coderay.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/coderay.rb b/lib/coderay.rb
index 8b9ad41..60dcfd0 100644
--- a/lib/coderay.rb
+++ b/lib/coderay.rb
@@ -168,7 +168,7 @@ module CodeRay
#
# If +lang+ is :auto or omitted, the CodeRay::FileType module is used to
# determine it. If it cannot find out what type it is, it uses
- # CodeRay::Scanners::Plaintext.
+ # CodeRay::Scanners::Text.
#
# Calls CodeRay.scan.
#
@@ -179,7 +179,7 @@ module CodeRay
file = IO.read filename
if lang == :auto
require 'coderay/helpers/file_type'
- lang = FileType.fetch filename, :plaintext, true
+ lang = FileType.fetch filename, :text, true
end
scan file, lang, options = {}, &block
end