Fix missing parens (#235)

This commit is contained in:
dai 2025-06-06 15:13:54 +02:00 committed by GitHub
parent 8490dfd294
commit 6ce796e7fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -540,10 +540,10 @@ Test if entity has a relationship wildcard
:::code-group :::code-group
```luau [luau] ```luau [luau]
world:has(bob, pair(Eats, jecs.Wildcard) world:has(bob, pair(Eats, jecs.Wildcard))
``` ```
```typescript [typescript] ```typescript [typescript]
world.has(bob, pair(Eats, jecs.Wildcard) world.has(bob, pair(Eats, jecs.Wildcard))
``` ```
::: :::
@ -578,7 +578,7 @@ for id in world:query(pair(Eats, Apples)) do
end end
``` ```
```typescript [typescript] ```typescript [typescript]
for (const [id] of world.query(pair(Eats, Apples)) { for (const [id] of world.query(pair(Eats, Apples))) {
// ... // ...
} }
``` ```
@ -593,7 +593,7 @@ for id in world:query(pair(Eats, jecs.Wildcard)) do
end end
``` ```
```typescript [typescript] ```typescript [typescript]
for (const [id] of world.query(pair(Eats, jecs.Wildcard)) { for (const [id] of world.query(pair(Eats, jecs.Wildcard))) {
const food = world.target(id, Eats) // Apples, ... const food = world.target(id, Eats) // Apples, ...
} }
``` ```
@ -608,7 +608,7 @@ for child in world:query(pair(jecs.ChildOf, parent)) do
end end
``` ```
```typescript [typescript] ```typescript [typescript]
for (const [child] of world.query(pair(jecs.ChildOf, parent)) { for (const [child] of world.query(pair(jecs.ChildOf, parent))) {
// ... // ...
} }
``` ```