neo4j: Fix the example for `CypherQuery::set`
authorJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Sat, 17 Jun 2017 04:45:50 +0000 (00:45 -0400)
committerJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Sat, 17 Jun 2017 04:45:50 +0000 (00:45 -0400)
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

lib/neo4j/neo4j.nit

index 2489f9c..d512462 100644 (file)
@@ -463,8 +463,10 @@ class CypherQuery
        # Return `self`.
        #
        # ```
-       # var query = (new CypherQuery).nmatch("(n)").nwhere(
-       #               "n.key = key").set("key", "foo")
+       # var query = (new CypherQuery).
+       #               nmatch("(n)").
+       #               nwhere("n.key = \{key\}").
+       #               set("key", "foo")
        #
        # assert query.params["key"] == "foo"
        # ```