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

* array.c: Fix rdoc for flatten!

* hash.c: Correct rdoc for reject!

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
marcandre 2013-02-23 20:17:20 +00:00
parent a0f3e24f95
commit a6d08b450c
2 changed files with 3 additions and 3 deletions

View file

@ -4197,8 +4197,8 @@ flatten(VALUE ary, int level, int *modified)
/*
* call-seq:
* ary.flatten! -> Array or nil
* ary.flatten!(level) -> Array or nil
* ary.flatten! -> ary or nil
* ary.flatten!(level) -> ary or nil
*
* Flattens +self+ in place.
*

2
hash.c
View file

@ -2697,7 +2697,7 @@ env_each_pair(VALUE ehash)
/*
* call-seq:
* ENV.reject! { |name, value| } -> Hash or nil
* ENV.reject! { |name, value| } -> ENV or nil
* ENV.reject! -> Enumerator
*
* Equivalent to ENV#delete_if but returns +nil+ if no changes were made.