[DOC] Tweaks for Array#dig

This commit is contained in:
BurdetteLamar 2024-09-11 07:34:52 -05:00 committed by Peter Zhu
parent c7e1862116
commit 309362d6c5
Notes: git 2024-09-11 12:47:28 +00:00

View File

@ -8031,9 +8031,9 @@ rb_ary_one_p(int argc, VALUE *argv, VALUE ary)
* call-seq:
* array.dig(index, *identifiers) -> object
*
* Finds and returns the object in nested objects
* that is specified by +index+ and +identifiers+.
* The nested objects may be instances of various classes.
* Finds and returns the object in nested object
* specified by +index+ and +identifiers+;
* the nested objects may be instances of various classes.
* See {Dig Methods}[rdoc-ref:dig_methods.rdoc].
*
* Examples:
@ -8044,6 +8044,7 @@ rb_ary_one_p(int argc, VALUE *argv, VALUE ary)
* a.dig(1, 2, 0) # => :bat
* a.dig(1, 2, 3) # => nil
*
* Related: see {Methods for Fetching}[rdoc-ref:Array@Methods+for+Fetching].
*/
static VALUE