From e0e66c3ccb2b090f46ee089fbf78f8dded09a748 Mon Sep 17 00:00:00 2001 From: "zhangxiaoyu.york" Date: Fri, 23 Aug 2024 12:08:30 +0800 Subject: [PATCH] update rm_if --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ef12993..d107c48 100644 --- a/README.md +++ b/README.md @@ -534,10 +534,10 @@ Values can be deleted with the `rm` method passing the key to be deleted as a pa should point to an existing value. There are conditional variations for deletion too. * `rm(std::string const& key)` unconditionally deletes the given key -* `rm_if(key, value, old_value)` deletes an already existing value but only if the previous +* `rm_if(key, old_value)` deletes an already existing value but only if the previous value equals with old_value. If the values does not match returns with "Compare failed" error (code `ERROR_COMPARE_FAILED`) -* `rm_if(key, value, old_index)` deletes an already existing value but only if the index of +* `rm_if(key, old_index)` deletes an already existing value but only if the index of the previous value equals with old_index. If the indices does not match returns with "Compare failed" error (code `ERROR_COMPARE_FAILED`)