diff options
author | Dorian MariƩ <[email protected]> | 2020-07-08 01:07:56 +0200 |
---|---|---|
committer | aycabta <[email protected]> | 2020-09-18 14:57:58 +0900 |
commit | 0d56aec1ddc48f0a769c4dfc8fde62a7c00ac052 (patch) | |
tree | ebcb1c6c6861c3a84c3348328cad426ea9c5afc2 /lib/rdoc/parser.rb | |
parent | e23f0f29daa45f69ef78b174340c747ac09bfb60 (diff) |
[ruby/rdoc] Fix spelling error in parser comment
https://github.com/ruby/rdoc/commit/f237c9e223
Diffstat (limited to 'lib/rdoc/parser.rb')
-rw-r--r-- | lib/rdoc/parser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/parser.rb b/lib/rdoc/parser.rb index 2ee40eed40..425bc48632 100644 --- a/lib/rdoc/parser.rb +++ b/lib/rdoc/parser.rb @@ -78,7 +78,7 @@ class RDoc::Parser return true if s[0, 2] == Marshal.dump('')[0, 2] or s.index("\x00") - 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 s.sub!(/\A#!.*\n/, '') # assume shebang line isn't longer than 1024. encoding = s[/^\s*\#\s*(?:-\*-\s*)?(?:en)?coding:\s*([^\s;]+?)(?:-\*-|[\s;])/, 1] mode = "rb:#{encoding}" if encoding |