From 20e94adb610ebb27f01cce507ddabe6ad245bc99 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sun, 21 Apr 2019 15:44:03 -0400 Subject: [PATCH] Update documentation for update function. --- src/boot/boot.janet | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/boot/boot.janet b/src/boot/boot.janet index 1b834cf8..66038192 100644 --- a/src/boot/boot.janet +++ b/src/boot/boot.janet @@ -914,8 +914,9 @@ res) (defn update - "Accepts a key argument and passes its' associated value to a function. - The key then, is associated to the function's return value" + "Accepts a key argument and passes its associated value to a function. + The key is the re-associated to the function's return value. Returns the updated + data structure ds." [ds key func & args] (def old (get ds key)) (set (ds key) (func old ;args)))