Skip to content

Commit c02ae04

Browse files
committed
Fixed example code
1 parent a3fca11 commit c02ae04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ Example
8686
tx.run("MATCH (a:Person {name:'Alice'}) "
8787
"MERGE (a)-[:KNOWS]->(x:Person {name:{n}})", {"n": friend})
8888
89-
for friend, in session.run("MATCH (a:Person {name:'Alice'})-[:KNOWS]->(x) RETURN x"):
90-
print('Alice says, "hello, %s"' % friend["name"])
89+
for record in session.run("MATCH (a:Person {name:'Alice'})-[:KNOWS]->(friend) RETURN friend"):
90+
print('Alice says, "hello, %s"' % record["friend"]["name"])
9191
9292
driver.close()
9393

0 commit comments

Comments
 (0)