fix typo

Please backport from https://github.com/ruby/ruby/pull/506