зеркало из https://github.com/github/ruby.git
[DOC] Stop unintentional references to builtin or standard names
This commit is contained in:
Родитель
7bfa1c3dc9
Коммит
e316128e3d
|
@ -51,7 +51,10 @@ DATA.each_line {|s|
|
|||
next
|
||||
end
|
||||
h[name] = default_value
|
||||
COMMENTS[name] = comment if comment
|
||||
if comment
|
||||
# Stop unintentional references
|
||||
COMMENTS[name] = comment.gsub(/\b(Data|Kernel|Process|Set|Socket|Time)\b/, '\\\\\\&')
|
||||
end
|
||||
}
|
||||
DEFS = h.to_a
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче