[ruby-cvs:71172] tenderlove:r64081 (trunk): Include Hash#size in the examples

tenderlove at ruby-lang.org tenderlove at ruby-lang.org
Sat Jul 28 02:28:41 JST 2018


tenderlove	2018-07-28 02:28:41 +0900 (Sat, 28 Jul 2018)

  New Revision: 64081

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64081

  Log:
    Include Hash#size in the examples
    
    Both methods Hash#length and Hash#size share the same source code in
    Ruby, but they also share the same documentation. Now when you look at
    the documentation of Hash#size you only see examples for Hash#length,
    which is confusing. This commit includes Hash#size in the examples and
    also remarks that both methods are equivalent to each other.
    
    Co-authored-by: Alberto Almagro <alberto.almagro at rakuten.com>

  Modified files:
    trunk/hash.c


More information about the ruby-cvs mailing list