diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-10 18:34:07 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-10 18:34:07 +0000 |
commit | 5ec23b5222811bcbce0b3049d53f89311f6e43b5 (patch) | |
tree | 3b389a39ea8ba5d9f54022b563781d6ce9ea5404 /hash.c | |
parent | 66c9bb11aac6036393a421a8946e1c5aaebddc6f (diff) | |
download | ruby-5ec23b5222811bcbce0b3049d53f89311f6e43b5.tar.gz |
Updated documentation examples for Hash#value?
The same code is used for has_value? and value?, but according to
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/43765
has_value is deprecated. Use the non-deprecated syntax in the examples.
by Herwin Weststrate <herwin@snt.utwente.nl>
fix https://github.com/ruby/ruby/pull/1491
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2133,8 +2133,8 @@ rb_hash_search_value(VALUE key, VALUE value, VALUE arg) * in <i>hsh</i>. * * h = { "a" => 100, "b" => 200 } - * h.has_value?(100) #=> true - * h.has_value?(999) #=> false + * h.value?(100) #=> true + * h.value?(999) #=> false */ static VALUE |