We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c870ce commit f237c9eCopy full SHA for f237c9e
lib/rdoc/parser.rb
@@ -78,7 +78,7 @@ def self.binary?(file)
78
79
return true if s[0, 2] == Marshal.dump('')[0, 2] or s.index("\x00")
80
81
- mode = 'r:utf-8' # default source encoding has been chagened to utf-8
+ mode = 'r:utf-8' # default source encoding has been changed to utf-8
82
s.sub!(/\A#!.*\n/, '') # assume shebang line isn't longer than 1024.
83
encoding = s[/^\s*\#\s*(?:-\*-\s*)?(?:en)?coding:\s*([^\s;]+?)(?:-\*-|[\s;])/, 1]
84
mode = "rb:#{encoding}" if encoding
0 commit comments