mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ENV#fetch: fix documentation of raised exception
[Fix GH-1514] Author: Misty De Meo <mistydemeo@github.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
50db992a6a
commit
c59e739b02
1 changed files with 1 additions and 1 deletions
2
hash.c
2
hash.c
|
@ -3263,7 +3263,7 @@ rb_f_getenv(VALUE obj, VALUE name)
|
|||
* Retrieves the environment variable +name+.
|
||||
*
|
||||
* If the given name does not exist and neither +default+ nor a block a
|
||||
* provided an IndexError is raised. If a block is given it is called with
|
||||
* provided an KeyError is raised. If a block is given it is called with
|
||||
* the missing name to provide a value. If a default value is given it will
|
||||
* be returned when no block is given.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue