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 2016/01/14 00:15:00 UTC
incubator-tinkerpop git commit: the constant() examples had unneeded
__. prefixes on the nested traversals. Removed as that is not the convention
for our docs. CTR.
Repository: incubator-tinkerpop
Updated Branches:
refs/heads/master 0cac85578 -> 52fcb605a
the constant() examples had unneeded __. prefixes on the nested traversals. Removed as that is not the convention for our docs. CTR.
Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/52fcb605
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/52fcb605
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/52fcb605
Branch: refs/heads/master
Commit: 52fcb605a06f423961631e8b260293dcbf4e51ee
Parents: 0cac855
Author: Marko A. Rodriguez <ok...@gmail.com>
Authored: Wed Jan 13 16:14:56 2016 -0700
Committer: Marko A. Rodriguez <ok...@gmail.com>
Committed: Wed Jan 13 16:14:56 2016 -0700
----------------------------------------------------------------------
docs/src/reference/the-traversal.asciidoc | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/52fcb605/docs/src/reference/the-traversal.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/reference/the-traversal.asciidoc b/docs/src/reference/the-traversal.asciidoc
index 72535cf..3f6b4e9 100644
--- a/docs/src/reference/the-traversal.asciidoc
+++ b/docs/src/reference/the-traversal.asciidoc
@@ -497,12 +497,12 @@ steps like <<choose-step,`choose()`-step>> or <<coalesce-step,`coalesce()`-step>
[gremlin-groovy,modern]
----
-g.V().choose(__.hasLabel('person'),
- __.values('name'),
- __.constant('inhuman')) <1>
+g.V().choose(hasLabel('person'),
+ values('name'),
+ constant('inhuman')) <1>
g.V().coalesce(
- __.hasLabel('person').values('name'),
- __.constant('inhuman')) <2>
+ hasLabel('person').values('name'),
+ constant('inhuman')) <2>
----
<1> Show the names of people, but show "inhuman" for other vertices.