Skip to content

Commit b318a8a

Browse files
Merge pull request #680 from alyssais/iterator_enumerator
docs: Iterator -> Enumerator
2 parents ea22ebf + 5c759fa commit b318a8a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

ext/rugged/rugged_repo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1589,7 +1589,7 @@ static int rugged__each_id_cb(const git_oid *id, void *payload)
15891589
/*
15901590
* call-seq:
15911591
* repo.each_id { |id| block }
1592-
* repo.each_id -> Iterator
1592+
* repo.each_id -> Enumerator
15931593
*
15941594
* Call the given +block+ once with every object ID found in +repo+
15951595
* and all its alternates. Object IDs are passed as 40-character

ext/rugged/rugged_revwalk.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,13 +428,13 @@ static VALUE rb_git_walk_with_opts(int argc, VALUE *argv, VALUE self, int oid_on
428428
/*
429429
* call-seq:
430430
* walker.each { |commit| block }
431-
* walker.each -> Iterator
431+
* walker.each -> Enumerator
432432
*
433433
* Perform the walk through the repository, yielding each
434434
* one of the commits found as a <tt>Rugged::Commit</tt> instance
435435
* to +block+.
436436
*
437-
* If no +block+ is given, an +Iterator+ will be returned.
437+
* If no +block+ is given, an +Enumerator+ will be returned.
438438
*
439439
* The walker must have been previously set-up before a walk can be performed
440440
* (i.e. at least one commit must have been pushed).
@@ -458,13 +458,13 @@ static VALUE rb_git_walker_each(int argc, VALUE *argv, VALUE self)
458458
/*
459459
* call-seq:
460460
* walker.each_oid { |commit| block }
461-
* walker.each_oid -> Iterator
461+
* walker.each_oid -> Enumerator
462462
*
463463
* Perform the walk through the repository, yielding each
464464
* one of the commit oids found as a <tt>String</tt>
465465
* to +block+.
466466
*
467-
* If no +block+ is given, an +Iterator+ will be returned.
467+
* If no +block+ is given, an +Enumerator+ will be returned.
468468
*
469469
* The walker must have been previously set-up before a walk can be performed
470470
* (i.e. at least one commit must have been pushed).

ext/rugged/rugged_tree.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ static int rugged__treewalk_cb(const char *root, const git_tree_entry *entry, vo
260260
/*
261261
* call-seq:
262262
* tree.walk(mode) { |root, entry| block }
263-
* tree.walk(mode) -> Iterator
263+
* tree.walk(mode) -> Enumerator
264264
*
265265
* Walk +tree+ with the given mode (either +:preorder+ or +:postorder+) and yield
266266
* to +block+ every entry in +tree+ and all its subtrees, as a +Hash+. The +block+
@@ -270,7 +270,7 @@ static int rugged__treewalk_cb(const char *root, const git_tree_entry *entry, vo
270270
* If the +block+ returns a falsy value, that entry and its sub-entries (in the case
271271
* of a folder) will be skipped for the iteration.
272272
*
273-
* If no +block+ is given, an +Iterator+ is returned instead.
273+
* If no +block+ is given, an +Enumerator+ is returned instead.
274274
*
275275
* tree.walk(:postorder) { |root, entry| puts "#{root}#{entry[:name]} [#{entry[:oid]}]" }
276276
*

0 commit comments

Comments
 (0)