summaryrefslogtreecommitdiff
path: root/lib/coderay.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2011-05-21 03:03:31 +0000
committermurphy <murphy@rubychan.de>2011-05-21 03:03:31 +0000
commit5efcf487985e7348ed3d39f33b7185028a6e3716 (patch)
treeddaa71a4884a5349d985526f88f11a7514c7b6d7 /lib/coderay.rb
parentc5a193f08ddef1ba1cb5e1f9b0789b2f587022c4 (diff)
downloadcoderay-5efcf487985e7348ed3d39f33b7185028a6e3716.tar.gz
various fixes and cleanups in CodeRay's helpers
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