8000 [DOC] Tweaks for Hash#empty? · github/ruby@27ba268 · GitHub
[go: up one dir, main page]

Skip to content

Commit 27ba268

Browse files
[DOC] Tweaks for Hash#empty?
1 parent fd134cf commit 27ba268

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hash.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3017,8 +3017,11 @@ rb_hash_size_num(VALUE hash)
30173017
* empty? -> true or false
30183018
*
30193019
* Returns +true+ if there are no hash entries, +false+ otherwise:
3020+
*
30203021
* {}.empty? # => true
3021-
* {foo: 0, bar: 1, baz: 2}.empty? # => false
3022+
* {foo: 0}.empty? # => false
3023+
*
3024+
* Related: see {Methods for Querying}[rdoc-ref:Hash@Methods+for+Querying].
30223025
*/
30233026

30243027
VALUE

0 commit comments

Comments
 (0)
0