From badf35333320c20a44955d540c4ec0b2f02c10e8 Mon Sep 17 00:00:00 2001 From: Ivan Kuznetsov Date: Thu, 4 Aug 2022 18:26:54 +0300 Subject: [PATCH] Update stdlib.md There was an issue with docs for `dict_delete_get_min` as well as with `dict_delete_get_max` methods (x and k were on different places). --- docs/func/stdlib.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/func/stdlib.md b/docs/func/stdlib.md index 95d3a05..3101d49 100644 --- a/docs/func/stdlib.md +++ b/docs/func/stdlib.md @@ -926,7 +926,7 @@ Similar to `dict_replace?`, but accept a builder. (cell, (int, slice, int)) ~udict::delete_get_min(cell dict, int key_len) asm(-> 0 2 1 3) "DICTUREMMIN" "NULLSWAPIFNOT2"; (cell, (slice, slice, int)) ~dict::delete_get_min(cell dict, int key_len) asm(-> 0 2 1 3) "DICTREMMIN" "NULLSWAPIFNOT2"; ``` -Computes the minimal key `k` in the dictionary `dict`, removes it and returns `(dict', x, k, -1)`, where `dict'` is the modified version of `dict` and `x` is the value associated with `k`. If the dict is empty, returns `(dict, null, null, 0)`. +Computes the minimal key `k` in the dictionary `dict`, removes it and returns `(dict', k, x, -1)`, where `dict'` is the modified version of `dict` and `x` is the value associated with `k`. If the dict is empty, returns `(dict, null, null, 0)`. Note that the key returned by `idict_delete_get_min` may differ from the key returned by `dict_delete_get_min` and `udict_delete_get_min`. @@ -939,7 +939,7 @@ Note that the key returned by `idict_delete_get_min` may differ from the key ret (cell, (int, slice, int)) ~idict::delete_get_max(cell dict, int key_len) asm(-> 0 2 1 3) "DICTIREMMAX" "NULLSWAPIFNOT2"; (cell, (slice, slice, int)) ~dict::delete_get_max(cell dict, int key_len) asm(-> 0 2 1 3) "DICTREMMAX" "NULLSWAPIFNOT2"; ``` -Computes the maximal key `k` in the dictionary `dict`, removes it and returns `(dict', x, k, -1)`, where `dict'` is the modified version of `dict` and `x` is the value associated with `k`. If the dict is empty, returns `(dict, null, null, 0)`. +Computes the maximal key `k` in the dictionary `dict`, removes it and returns `(dict', k, x, -1)`, where `dict'` is the modified version of `dict` and `x` is the value associated with `k`. If the dict is empty, returns `(dict, null, null, 0)`. #### dict_get_min? ```