summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurdetteLamar <burdettelamar@yahoo.com>2025-03-26 15:15:15 -0500
committerPeter Zhu <peter@peterzhu.ca>2025-03-29 17:04:33 -0400
commit4e3bc65e88f050563a49982ac0a5e57940def161 (patch)
tree5666ee9688a9bbcbfafa6ae3d5cc3ba6cd3686a9
parenta4a60195502add094fb52a587411bbd0c19facce (diff)
[DOC] Tweaks for Hash#has_value?
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12986
-rw-r--r--hash.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hash.c b/hash.c
index 9ac2567c80..3dbfe428ab 100644
--- a/hash.c
+++ b/hash.c
@@ -3890,9 +3890,10 @@ rb_hash_search_value(VALUE key, VALUE value, VALUE arg)
/*
* call-seq:
* has_value?(value) -> true or false
- * value?(value) -> true or false
*
- * Returns +true+ if +value+ is a value in +self+, otherwise +false+.
+ * Returns whether +value+ is a value in +self+.
+ *
+ * Related: {Methods for Querying}[rdoc-ref:Hash@Methods+for+Querying].
*/
static VALUE