From f47d36eb8bcced7692afdba8d70c278e07fb5ea6 Mon Sep 17 00:00:00 2001 From: Sky Johnson Date: Tue, 3 Jun 2025 17:01:56 -0500 Subject: [PATCH] update docs --- DOCS.md | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DOCS.md b/DOCS.md index e6d1b17..b509c86 100644 --- a/DOCS.md +++ b/DOCS.md @@ -109,7 +109,7 @@ if err != nil { ``` ### ToTable(index int) (any, error) -Converts a Lua table to optimal Go type ([]int, []string, map[string]any, etc.). +Converts a Lua table to optimal Go type; arrays or `map[string]any`. ```go table, err := L.ToTable(-1) if err != nil { diff --git a/README.md b/README.md index d5e6837..86d87b6 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ L.PushValue(stuff) // Handles all Go types automatically // Lua → Go with automatic type detection L.GetGlobal("some_table") -result, err := L.ToTable(-1) // Returns optimal Go type ([]int, map[string]string, etc.) +result, err := L.ToTable(-1) // Returns optimal Go type (typed array, or map[string]any) ``` ### Table Builder