add comment for ReadOptions.set_iterate_upper_bound method.

master
xiaobogaga 6 years ago
parent 218edeffcc
commit 3cd5c606a7
  1. 3
      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<K: AsRef<[u8]>>(&mut self, key: K) { pub fn set_iterate_upper_bound<K: AsRef<[u8]>>(&mut self, key: K) {
let key = key.as_ref(); let key = key.as_ref();
unsafe { unsafe {
ffi::rocksdb_readoptions_set_iterate_upper_bound( ffi::rocksdb_readoptions_set_iterate_upper_bound(
self.inner, self.inner,

Loading…
Cancel
Save