From e286e8214445a9979fa09fbd0af2eddda6035b3e Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sat, 15 Dec 2018 23:22:51 -0500 Subject: [PATCH] Add docstring for make-env --- src/core/core.janet | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/core.janet b/src/core/core.janet index 1e607c22..b2dad05b 100644 --- a/src/core/core.janet +++ b/src/core/core.janet @@ -1236,6 +1236,9 @@ value, one key will be ignored." ### (defn make-env + "Create a new environment table. The new environment + will inherit bindings from the parent environment, but new + bindings will not pollute the parent environment." [parent &] (def parent (if parent parent _env)) (def newenv (table/setproto @{} parent))