ruby-changes:63008
From: Dorian <ko1@a...>
Date: Fri, 18 Sep 2020 15:03:11 +0900 (JST)
Subject: [ruby-changes:63008] 0d56aec1dd (master): [ruby/rdoc] Fix spelling error in parser comment
https://git.ruby-lang.org/ruby.git/commit/?id=0d56aec1dd From 0d56aec1ddc48f0a769c4dfc8fde62a7c00ac052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dorian=20Mari=C3=A9?= <dorian.marie.france@g...> Date: Wed, 8 Jul 2020 01:07:56 +0200 Subject: [ruby/rdoc] Fix spelling error in parser comment https://github.com/ruby/rdoc/commit/f237c9e223 diff --git a/lib/rdoc/parser.rb b/lib/rdoc/parser.rb index 2ee40ee..425bc48 100644 --- a/lib/rdoc/parser.rb +++ b/lib/rdoc/parser.rb @@ -78,7 +78,7 @@ class RDoc::Parser https://github.com/ruby/ruby/blob/trunk/lib/rdoc/parser.rb#L78 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/