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)