You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by ok...@apache.org on 2015/11/16 21:11:56 UTC

incubator-tinkerpop git commit: fixed a bug in the RepeatStep docs.

Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/master e7783f934 -> b060c7dca


fixed a bug in the RepeatStep docs.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/b060c7dc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/b060c7dc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/b060c7dc

Branch: refs/heads/master
Commit: b060c7dca2fd51b814efd7dac28eff923bb4fb18
Parents: e7783f9
Author: Marko A. Rodriguez <ok...@gmail.com>
Authored: Mon Nov 16 13:11:37 2015 -0700
Committer: Marko A. Rodriguez <ok...@gmail.com>
Committed: Mon Nov 16 13:11:37 2015 -0700

----------------------------------------------------------------------
 docs/src/the-traversal.asciidoc | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/b060c7dc/docs/src/the-traversal.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/the-traversal.asciidoc b/docs/src/the-traversal.asciidoc
index 74e859e..49d570f 100644
--- a/docs/src/the-traversal.asciidoc
+++ b/docs/src/the-traversal.asciidoc
@@ -1368,12 +1368,11 @@ image::repeat-step.png[width=500]
 g.V(1).repeat(out()).times(2).emit().path().by('name')
 ----
 
-The first time through the `repeat()`, the vertices lop, vadas, and josh are seen. Given that `loops==0`, the
-traverser repeats. However, because the emit-predicate is declared true, those vertices are emitted. At step 2
-(`loops==1`), the vertices traversed are ripple and lop (Josh's created projects, as lop and vadas have no out edges)
-and are also emitted. Now `loops==1` so the traverser repeats. As ripple and lop have no out edges there are no
-vertices to traverse. Given that `loops==2`, the until-predicate fails. Therefore, the traverser has seen the
-vertices: lop, vadas, josh, ripple, and lop.
+The first time through the `repeat()`, the vertices lop, vadas, and josh are seen. Given that `loops==1`, the
+traverser repeats. However, because the emit-predicate is declared true, those vertices are emitted. The next time through
+ `repeat()`, the vertices traversed are ripple and lop (Josh's created projects, as lop and vadas have no out edges).
+  Given that `loops==2`, the until-predicate fails and ripple and lop are emitted.
+Therefore, the traverser has seen the vertices: lop, vadas, josh, ripple, and lop.
 
 Finally, note that both `emit()` and `until()` can take a traversal and in such, situations, the predicate is
 determined by `traversal.hasNext()`. A few examples are provided below.