From 3cd5c606a7d34e707e5caa0e67c35d4f6befacc8 Mon Sep 17 00:00:00 2001 From: xiaobogaga Date: Mon, 1 Apr 2019 11:17:33 +0800 Subject: [PATCH] add comment for ReadOptions.set_iterate_upper_bound method. --- src/db.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/db.rs b/src/db.rs index 905dff3..5c1fdb6 100644 --- a/src/db.rs +++ b/src/db.rs @@ -1768,9 +1768,10 @@ impl ReadOptions { } } + /// set_iterate_upper_bound sets the upper bound for an iterator, and the upper bound itself + /// is not included on the iteration result. pub fn set_iterate_upper_bound>(&mut self, key: K) { let key = key.as_ref(); - unsafe { ffi::rocksdb_readoptions_set_iterate_upper_bound( self.inner,