diff --git a/README.md b/README.md index bb0d4b0..199ac48 100644 --- a/README.md +++ b/README.md @@ -60,8 +60,8 @@ world:set(sara, Name, "sara") print(getName(parent(sara))) -for e in world:query(pair(ChildOf, alice)) do - print(getName(e), "is the child of alice") +for e, name in world:query(Name, pair(ChildOf, alice)) do + print(name, "is the child of alice") end -- Output