hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 00facecc0b5820f979b28783c003c7a2e841f9cb
parent 392dead9c1dc3ce93fa4e74ecf6d38161d62d8b2
Author: Sebastian <sebastian@sebsite.pw>
Date:   Sun, 15 May 2022 21:37:33 -0400

encoding::json: clarify set docs

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mencoding/json/value.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/encoding/json/value.ha b/encoding/json/value.ha @@ -31,7 +31,7 @@ export fn get(obj: *object, key: str) (*value | void) = { }; }; -// Sets a value in a JSON object. +// Sets a value in a JSON object. The key and value will be duplicated. export fn set(obj: *object, key: const str, val: const value) void = { const hash = fnv::string(key); const bucket = &obj.buckets[hash % len(obj.buckets)];