Fix missing parens

This commit is contained in:
daimond113 2025-06-05 23:04:27 +02:00
parent d505a0a38d
commit 5f8f24d858
No known key found for this signature in database
GPG key ID: 640DC95EC1190354

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))) {
// ... // ...
} }
``` ```