refined by https://github.com/ruby/www.ruby-lang.org/commit/adbe81ce590b431ef92d9d3171807459ec4defd5#commitcomment-3855439