summaryrefslogtreecommitdiff
path: root/ext/socket
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-12-17 22:37:15 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-12-17 22:37:15 +0900
commit7bfa1c3dc911f5c36ac64d6b4f410e4f12a7d4ca (patch)
treeaeb4a300d94c70b9bed16c3783398ec726e0b9a2 /ext/socket
parentaab74eafdeca6173d82eccc97de628538ff0c6fd (diff)
Revert "[DOC] Make undocumented socket constans nodoc"
This reverts commit cbda94edd80b0f664eda927f9ce9405b2074633a, because `:nodoc:` does not work for constants. In the case of `rb_define_const`, RDoc parses the preceeding comment as in `"/* definition: comment */"` form.
Diffstat (limited to 'ext/socket')
-rw-r--r--ext/socket/mkconstants.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/mkconstants.rb b/ext/socket/mkconstants.rb
index 557a3df611..4020bf02e6 100644
--- a/ext/socket/mkconstants.rb
+++ b/ext/socket/mkconstants.rb
@@ -38,7 +38,7 @@ opt.parse!
h = {}
-COMMENTS = Hash.new(":nodoc:")
+COMMENTS = Hash.new { |h, name| h[name] = name }
DATA.each_line {|s|
name, default_value, comment = s.chomp.split(/\s+/, 3)