From 0f8cb19100621b702e2026fce521d6f6ef16739d Mon Sep 17 00:00:00 2001 From: SolarScuffle-Bot <93509782+SolarScuffle-Bot@users.noreply.github.com> Date: Thu, 4 Jan 2024 20:54:50 -1000 Subject: [PATCH] Update polymorphic-table-types.md --- docs/polymorphic-table-types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/polymorphic-table-types.md b/docs/polymorphic-table-types.md index 6e9373d..5940d8a 100644 --- a/docs/polymorphic-table-types.md +++ b/docs/polymorphic-table-types.md @@ -49,7 +49,7 @@ This proposal targets users already neck-deep in the type-system supporting libr ### Specific Indexer Pattern -We'll demonstrate using a minified ECS api from a library currently in production, getting components from an entity. This library depends on accessing components from tables using their constructors as indexers. The constructors contain the type information of the component, so it is theoretically possible to infer the type of the resulting component from the constructor, but this is not possible as of now because polymorphic tables don't exist. +We'll demonstrate getting components from an entity using a minified ECS api from a library currently in production. This library depends on accessing components from tables using their constructors as indexers. The constructors contain the type information of the component, so it is theoretically possible to infer the type of the resulting component from the constructor, but this is not possible as of now because polymorphic tables don't exist. ```lua -- (() -> C) -> Factory