diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-02-17 18:38:29 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-02-17 18:38:29 -0500 |
| commit | 7355b2f7fe6f5dda2aee8feca025350146ccd0f5 (patch) | |
| tree | 8c0b7658e55a0fa634100ac4828fe4aaf6a0d27a /builtins/types.c | |
| parent | 1dcfbdc5c79c26b0f5d5997bed755e93f47e2ec1 (diff) | |
Change things up to use type params for all array and table methods
Diffstat (limited to 'builtins/types.c')
| -rw-r--r-- | builtins/types.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtins/types.c b/builtins/types.c index b5527c63..f77a36f9 100644 --- a/builtins/types.c +++ b/builtins/types.c @@ -47,8 +47,8 @@ public struct { public CORD Func__as_str(const void *fn, bool colorize, const TypeInfo *type) { (void)fn; - CORD c = type->TypeInfoInfo.type_str; - if (colorize) + CORD c = type->FunctionInfo.type_str; + if (fn && colorize) CORD_sprintf(&c, "\x1b[32;1m%r\x1b[m", c); return c; } |
