Masafumi Yokoyama
null+****@clear*****
Sat Feb 14 01:54:47 JST 2015
Masafumi Yokoyama 2015-02-14 01:54:47 +0900 (Sat, 14 Feb 2015) New Revision: c3075963f55a4e1dfae21ca9cd93abcd16508956 https://github.com/ranguba/rroonga/commit/c3075963f55a4e1dfae21ca9cd93abcd16508956 Message: doc: use more meaningfull block local variable name Modified files: ext/groonga/rb-grn-table.c Modified: ext/groonga/rb-grn-table.c (+5 -5) =================================================================== --- ext/groonga/rb-grn-table.c 2015-02-14 01:50:54 +0900 (d230b42) +++ ext/groonga/rb-grn-table.c 2015-02-14 01:54:47 +0900 (3107a23) @@ -1310,8 +1310,8 @@ rb_grn_table_sort (int argc, VALUE *argv, VALUE self) * * <pre> * !!!ruby - * grouped_records = table.group("key1").collect do |record| - * [record.key, record.n_sub_records] + * grouped_records = table.group("key1").collect do |group| + * [group.key, group.n_sub_records] * end * </pre> * @@ -1321,12 +1321,12 @@ rb_grn_table_sort (int argc, VALUE *argv, VALUE self) * * <pre> * !!!ruby - * grouped_records = table.group(["key1", "key2"]).collect do |record| - * sub_record = record.sub_records.first + * grouped_records = table.group(["key1", "key2"]).collect do |group| + * sub_record = group.sub_records.first * [ * sub_record.key1, * sub_record.key2, - * record.n_sub_records, + * group.n_sub_records, * ] * end * </pre> -------------- next part -------------- HTML����������������������������...Download