From 1bfbe71751aa2e28fa9711acb8e632f30e2843c8 Mon Sep 17 00:00:00 2001 From: Paulo Rafael Feodrippe Date: Sun, 27 Aug 2023 18:04:04 -0400 Subject: [PATCH] #1033 Fix `ecs_w_new_pair` in Manual.md --- docs/Manual.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Manual.md b/docs/Manual.md index f0c91c851..0db4a89ef 100644 --- a/docs/Manual.md +++ b/docs/Manual.md @@ -1190,7 +1190,7 @@ ECS_PREFAB(world, prefab, Position, Velocity); To instantiate a prefab, an application can use the `IsA` relationship: ```c -ecs_entity_t e = ecs_new_w_pair(world, (IsA, prefab)); +ecs_entity_t e = ecs_new_w_pair(world, IsA, prefab); ``` To ensure that entities that inherit from a prefab don't also inherit the `Prefab` tag (which would cause them to not get matched with systems), the `Prefab` tag does not propagate to derived entities. This is illustrated in the following example: @@ -1201,7 +1201,7 @@ ECS_PREFAB(world, prefab, Position); ecs_has(world, prefab, EcsPrefab); // true ecs_has(world, prefab, Position); // true -ecs_entity_t e = ecs_new_w_pair(world, (IsA, prefab)); +ecs_entity_t e = ecs_new_w_pair(world, IsA, prefab); ecs_has(world, e, EcsPrefab); // false ecs_has(world, e, Position); // true ```