From 3300cb536c83d7db0e2be57e76ea026cf5834df7 Mon Sep 17 00:00:00 2001 From: naruse Date: Sat, 10 Dec 2016 18:34:07 +0000 Subject: 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 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 --- hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index 785e56ffcf..1867c0999c 100644 --- a/hash.c +++ b/hash.c @@ -2133,8 +2133,8 @@ rb_hash_search_value(VALUE key, VALUE value, VALUE arg) * in hsh. * * 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 -- cgit v1.2.3