From 0d56aec1ddc48f0a769c4dfc8fde62a7c00ac052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dorian=20Mari=C3=A9?= Date: Wed, 8 Jul 2020 01:07:56 +0200 Subject: [PATCH] [ruby/rdoc] Fix spelling error in parser comment https://github.com/ruby/rdoc/commit/f237c9e223 --- lib/rdoc/parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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