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 ```
This commit is contained in:
parent
df91896f32
commit
f26f0f4109
2
hash.c
2
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user