diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-26 10:37:12 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-26 10:37:12 +0000 |
commit | f142cfb878249a44f02d2b37773dc29b65d96439 (patch) | |
tree | 807be58fec47332ce7d5a9410ebf4319ab74bed4 | |
parent | ceb375484eb03a6b4fd23b6c6fa84c3c06da89bf (diff) | |
download | ruby-f142cfb878249a44f02d2b37773dc29b65d96439.tar.gz |
array.c: reword [ci skip]
* array.c (permute0, rpermute0): [DOC] Substitute indexes ->
indices in documentation for consistency. [Fix GH-1222]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | array.c | 8 |
2 files changed, 9 insertions, 4 deletions
@@ -1,3 +1,8 @@ +Tue Jan 26 19:36:15 2016 Aggelos Avgerinos <evaggelos.avgerinos@gmail.com> + + * array.c (permute0, rpermute0): [DOC] Substitute indexes -> + indices in documentation for consistency. [Fix GH-1222] + Tue Jan 26 15:21:37 2016 Eric Wong <e@80x24.org> * compile.c (caller_location): use rb_fstring_cstr for "<compiled>" @@ -4828,8 +4828,8 @@ yield_indexed_values(const VALUE values, const long r, const long *const p) /* * Compute permutations of +r+ elements of the set <code>[0..n-1]</code>. * - * When we have a complete permutation of array indexes, copy the values - * at those indexes into a new array and yield that array. + * When we have a complete permutation of array indices, copy the values + * at those indices into a new array and yield that array. * * n: the size of the set * r: the number of elements in each permutation @@ -5068,8 +5068,8 @@ rb_ary_combination(VALUE ary, VALUE num) * Compute repeated permutations of +r+ elements of the set * <code>[0..n-1]</code>. * - * When we have a complete repeated permutation of array indexes, copy the - * values at those indexes into a new array and yield that array. + * When we have a complete repeated permutation of array indices, copy the + * values at those indices into a new array and yield that array. * * n: the size of the set * r: the number of elements in each permutation |