You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2022/08/10 20:41:07 UTC
[tinkerpop] 01/03: Fixed syntax in docs so parsing tests in the grammar pass CTR
This is an automated email from the ASF dual-hosted git repository.
spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
commit 1191851431448e2971f10280cb165fb927328640
Author: Stephen Mallette <st...@amazon.com>
AuthorDate: Wed Aug 10 16:40:27 2022 -0400
Fixed syntax in docs so parsing tests in the grammar pass CTR
---
docs/src/recipes/anti-patterns.asciidoc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/src/recipes/anti-patterns.asciidoc b/docs/src/recipes/anti-patterns.asciidoc
index 5d349ab960..839764e38b 100644
--- a/docs/src/recipes/anti-patterns.asciidoc
+++ b/docs/src/recipes/anti-patterns.asciidoc
@@ -299,7 +299,7 @@ These examples are a bit contrived for sake of demonstration, but the common pat
[gremlin-groovy,modern]
----
-g.withSideEffect('x',[name: 'josh']).V().has('name', select('x').select('name'))
+g.withSideEffect('x',['name': 'josh']).V().has('name', select('x').select('name'))
----
The above example represents a commonly seen mistake where we try to dynamically inject the value "josh" from a
@@ -309,7 +309,7 @@ as in the following example:
[gremlin-groovy,modern]
----
-g.withSideEffect('x',[name: 'josh']).V().as('a').where('a',eq('x')).by('name')
+g.withSideEffect('x',['name': 'josh']).V().as('a').where('a',eq('x')).by('name')
----
As a final note on this topic, it's worth noting how `has(String,Traversal)` can be used. Note that the traverser that