提交 fe32dc8e 编写于 作者: R Ryuta Kamizono 提交者: GitHub

Merge pull request #30509 from y-yagi/remove_outdated_comment

Remove outdated comment [ci skip]
......@@ -330,7 +330,7 @@ def locals_code
locals = @locals - Module::RUBY_RESERVED_KEYWORDS
locals = locals.grep(/\A@?(?![A-Z0-9])(?:[[:alnum:]_]|[^\0-\177])+\z/)
# Double assign to suppress the dreaded 'assigned but unused variable' warning
# Assign for the same variable is to suppress unused variable warning
locals.each_with_object("".dup) { |key, code| code << "#{key} = local_assigns[:#{key}]; #{key} = #{key};" }
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册