summaryrefslogtreecommitdiff
path: root/doc/context/sources/general/manuals/cld/cld-luafunctions.tex
diff options
context:
space:
mode:
Diffstat (limited to 'doc/context/sources/general/manuals/cld/cld-luafunctions.tex')
-rw-r--r--doc/context/sources/general/manuals/cld/cld-luafunctions.tex4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/context/sources/general/manuals/cld/cld-luafunctions.tex b/doc/context/sources/general/manuals/cld/cld-luafunctions.tex
index 0b2bcb3da..c6443f088 100644
--- a/doc/context/sources/general/manuals/cld/cld-luafunctions.tex
+++ b/doc/context/sources/general/manuals/cld/cld-luafunctions.tex
@@ -68,7 +68,7 @@ You can use \type {insert} and \type {remove} for adding or replacing entries in
an indexed table.
\starttyping
-table.insert(t,value,position)
+table.insert(t,position,value)
value = table.remove(t,position)
\stoptyping
@@ -310,7 +310,7 @@ local merged = table.imerged (one, two, ...)
\startsummary[title={copy fastcopy}]
When copying a table we need to make a real and deep copy. The \type {copy}
-function is an adapted version from the \LUA\ wiki. The \type {fastopy} is faster
+function is an adapted version from the \LUA\ wiki. The \type {fastcopy} is faster
because it does not check for circular references and does not share tables when
possible. In practice using the fast variant is okay.