зеркало из https://github.com/github/ruby.git
* hash.c (key_i): Change rdoc from "the first occurence" to "an
occurrence" since first occurrence is not a specification of Hash#key. [Ruby 1.9 - Bug #4760] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
161cdee265
Коммит
f6809f61d6
|
@ -1,3 +1,9 @@
|
|||
Wed Jun 1 07:34:57 2011 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* hash.c (key_i): Change rdoc from "the first occurence" to "an
|
||||
occurrence" since first occurrence is not a specification of
|
||||
Hash#key. [Ruby 1.9 - Bug #4760]
|
||||
|
||||
Wed Jun 1 07:26:19 2011 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* ext/pty/pty.c (pty_check): Restore "not reached" comment.
|
||||
|
|
2
hash.c
2
hash.c
|
@ -740,7 +740,7 @@ key_i(VALUE key, VALUE value, VALUE arg)
|
|||
* call-seq:
|
||||
* hsh.key(value) -> key
|
||||
*
|
||||
* Returns the key of the first occurrence of a given value. If the value is
|
||||
* Returns the key of an occurrence of a given value. If the value is
|
||||
* not found, returns <code>nil</code>.
|
||||
*
|
||||
* h = { "a" => 100, "b" => 200, "c" => 300, "d" => 300 }
|
||||
|
|
Загрузка…
Ссылка в новой задаче