1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix ENV.except's docs

This commit is contained in:
bogdanvlviv 2020-09-26 14:25:46 +03:00 committed by Marc-André Lafortune
parent dead747874
commit cdb5258bec
Notes: git 2020-09-27 01:02:35 +09:00

4
hash.c
View file

@ -6332,8 +6332,8 @@ env_to_h(VALUE _)
*
* Returns a hash except the given keys from ENV and their values.
*
* ENV #=> {"LANG"="en_US.UTF-8", "TERM"=>"xterm-256color", "HOME"=>"/Users/rhc"}
* ENV.except("TERM","HOME") #=> {"LANG"="en_US.UTF-8"}
* ENV #=> {"LANG"=>"en_US.UTF-8", "TERM"=>"xterm-256color", "HOME"=>"/Users/rhc"}
* ENV.except("TERM","HOME") #=> {"LANG"=>"en_US.UTF-8"}
*/
static VALUE
env_except(int argc, VALUE *argv, VALUE _)