From 7a3ad7f0b8a3bf4c37a74257cef1a2f97c4439dc Mon Sep 17 00:00:00 2001 From: gnembon Date: Fri, 25 Jun 2021 23:47:42 -0300 Subject: [PATCH] fixed mixed messaging in docs about delete --- docs/scarpet/language/Containers.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/scarpet/language/Containers.md b/docs/scarpet/language/Containers.md index 1d51e881..a5c92b3a 100644 --- a/docs/scarpet/language/Containers.md +++ b/docs/scarpet/language/Containers.md @@ -43,8 +43,7 @@ equivalent to `has(get(foo,a), b)` or `has(foo, a, b)` ### `delete(container, address, ...), delete(lvalue)` Removes specific entry from the container. For the lists - removes the element and shrinks it. For maps, it -removes the key from the map, and for nbt - removes content from a given path. For lists and maps returns previous -entry at the address, for nbt's - number of removed objects, with 0 indicating that the original value was unaffected. +removes the key from the map, and for nbt - removes content from a given path. Like with the `get` and `has`, `delete` can accept chained addresses, as well as l-value container access, removing the value from the leaf of the path provided, so `delete(foo, a, b)` is the