From f26f0f41096c026e4874bf1af8d500a7aaa69e59 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Thu, 24 Oct 2019 08:04:45 +0900 Subject: [PATCH] hash.c: Do not use Unicode double-quotes It made rdoc fail. https://rubyci.org/logs/rubyci.s3.amazonaws.com/ubuntu1804/ruby-master/log/20191023T183005Z.fail.html.gz ``` RDoc is not a full Ruby parser and will fail when fed invalid ruby programs. The internal error was: (ArgumentError) invalid byte sequence in US-ASCII uh-oh! RDoc had a problem: invalid byte sequence in US-ASCII ``` --- hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hash.c b/hash.c index a77766058f..da4738b04c 100644 --- a/hash.c +++ b/hash.c @@ -4804,7 +4804,7 @@ rb_f_getenv(VALUE obj, VALUE name) * ENV.delete('foo') * ENV.fetch('foo', :default_need_not_be_a_string) # => :default_need_not_be_a_string * If the environment variable does not exist and both default and block are given, - * issues a warning (“warning: block supersedes default value argument”), + * issues a warning ("warning: block supersedes default value argument"), * yields +name+ to the block, and returns the block's return value: * ENV.fetch('foo', :default) { |name| :block_return } # => :block_return * Raises TypeError if +name+ is not a String and cannot be coerced with \#to_str: