mirror of
				https://github.com/Ukendio/jecs.git
				synced 2025-11-04 02:49:18 +00:00 
			
		
		
		
	Fix missing parens (#235)
This commit is contained in:
		
							parent
							
								
									8490dfd294
								
							
						
					
					
						commit
						6ce796e7fd
					
				
					 1 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
					@ -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))) {
 | 
				
			||||||
    // ...
 | 
					    // ...
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue