Skip to content

Commit 91c40d2

Browse files
committed
change some code
1 parent ac45fe7 commit 91c40d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/coderay.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ def scan code, lang, options = {}, &block
180180
# Example:
181181
# require 'coderay'
182182
# page = CodeRay.scan_file('some_c_code.c').html
183-
def scan_file filename, lang = :auto, options = {}, &block
184-
lang = CodeRay::FileType.fetch filename, :text, true if lang == :auto
185-
code = File.read filename
183+
def scan_file file_name, lang = :auto, options = {}, &block
184+
lang = CodeRay::FileType.fetch file_name, :text, true if lang == :auto
185+
code = File.read file_name
186186
scan code, lang, options, &block
187187
end
188188

0 commit comments

Comments
 (0)