diff --git a/docs/api/query.md b/docs/api/query.md index 63ec3ed..da66397 100644 --- a/docs/api/query.md +++ b/docs/api/query.md @@ -1,4 +1,4 @@ - # Query +# Query A World contains entities which have components. The World is queryable and can be used to get entities with a specific set of components. diff --git a/docs/learn/concepts/relationships.md b/docs/learn/concepts/relationships.md index 2c91690..7602896 100644 --- a/docs/learn/concepts/relationships.md +++ b/docs/learn/concepts/relationships.md @@ -181,9 +181,9 @@ for (const [id] of world.query(pair(Likes, jecs.Wildcard))) { Wildcards may used for the relationship or target part of a pair -```c -"pair(Likes, jecs.Wildcard)" // Matches all Likes relationships -"pair(jecs.Wildcard, Alice)" // Matches all relationships with Alice as target +```luau +pair(Likes, jecs.Wildcard) -- Matches all Likes relationships +pair(jecs.Wildcard, Alice) -- Matches all relationships with Alice as target ``` ## Relationship performance