未验证 提交 bbc3704b 编写于 作者: R Rafael França 提交者: GitHub

Merge pull request #36098 from michaelrbock/patch-1

Fixes grammar in comments on tag_name and tag_id
...@@ -106,7 +106,7 @@ def add_default_name_and_id(options) ...@@ -106,7 +106,7 @@ def add_default_name_and_id(options)
end end
def tag_name(multiple = false, index = nil) def tag_name(multiple = false, index = nil)
# a little duplication to construct less strings # a little duplication to construct fewer strings
case case
when @object_name.empty? when @object_name.empty?
"#{sanitized_method_name}#{multiple ? "[]" : ""}" "#{sanitized_method_name}#{multiple ? "[]" : ""}"
...@@ -118,7 +118,7 @@ def tag_name(multiple = false, index = nil) ...@@ -118,7 +118,7 @@ def tag_name(multiple = false, index = nil)
end end
def tag_id(index = nil) def tag_id(index = nil)
# a little duplication to construct less strings # a little duplication to construct fewer strings
case case
when @object_name.empty? when @object_name.empty?
sanitized_method_name.dup sanitized_method_name.dup
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册