Skip to content

Commit f237c9e

Browse files
Fix spelling error in parser comment
1 parent 3c870ce commit f237c9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rdoc/parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def self.binary?(file)
7878

7979
return true if s[0, 2] == Marshal.dump('')[0, 2] or s.index("\x00")
8080

81-
mode = 'r:utf-8' # default source encoding has been chagened to utf-8
81+
mode = 'r:utf-8' # default source encoding has been changed to utf-8
8282
s.sub!(/\A#!.*\n/, '') # assume shebang line isn't longer than 1024.
8383
encoding = s[/^\s*\#\s*(?:-\*-\s*)?(?:en)?coding:\s*([^\s;]+?)(?:-\*-|[\s;])/, 1]
8484
mode = "rb:#{encoding}" if encoding

0 commit comments

Comments
 (0)