From b6c1d54c98acf140e1444e6d73b1dd0730d21b0d Mon Sep 17 00:00:00 2001 From: Stanislav Tkach Date: Tue, 25 May 2021 09:30:59 +0300 Subject: [PATCH] Fix key may exist description (#521) --- src/db.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/db.rs b/src/db.rs index 4172ee0..72c83bd 100644 --- a/src/db.rs +++ b/src/db.rs @@ -849,13 +849,13 @@ impl DBWithThreadMode { } /// Returns `false` if the given key definitely doesn't exist in the database, otherwise returns - /// `false`. This function uses default `ReadOptions`. + /// `true`. This function uses default `ReadOptions`. pub fn key_may_exist>(&self, key: K) -> bool { self.key_may_exist_opt(key, &ReadOptions::default()) } /// Returns `false` if the given key definitely doesn't exist in the database, otherwise returns - /// `false`. + /// `true`. pub fn key_may_exist_opt>(&self, key: K, readopts: &ReadOptions) -> bool { let key = key.as_ref(); unsafe { @@ -874,13 +874,13 @@ impl DBWithThreadMode { } /// Returns `false` if the given key definitely doesn't exist in the specified column family, - /// otherwise returns `false`. This function uses default `ReadOptions`. + /// otherwise returns `true`. This function uses default `ReadOptions`. pub fn key_may_exist_cf>(&self, cf: impl AsColumnFamilyRef, key: K) -> bool { self.key_may_exist_cf_opt(cf, key, &ReadOptions::default()) } /// Returns `false` if the given key definitely doesn't exist in the specified column family, - /// otherwise returns `false`. + /// otherwise returns `true`. pub fn key_may_exist_cf_opt>( &self, cf: impl AsColumnFamilyRef,