1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-27 17:00:27 +00:00

Fix return value of update.

This commit is contained in:
Calvin Rose 2019-11-15 22:49:18 -06:00
parent d71cf093bb
commit 7553b277db

View File

@ -1033,7 +1033,7 @@
data structure ds." data structure ds."
[ds key func & args] [ds key func & args]
(def old (get ds key)) (def old (get ds key))
(set (ds key) (func old ;args))) (put ds key (func old ;args)))
(defn merge-into (defn merge-into
"Merges multiple tables/structs into a table. If a key appears in more than one "Merges multiple tables/structs into a table. If a key appears in more than one