Fixed method names in doc tests.

master
Alexander Regueiro 8 years ago
parent e67dc3ec7f
commit 75622d3660
  1. 4
      src/rocksdb_options.rs

@ -175,7 +175,7 @@ impl Options {
/// use rocksdb::{Options, DBCompressionType}; /// use rocksdb::{Options, DBCompressionType};
/// ///
/// let mut opts = Options::default(); /// let mut opts = Options::default();
/// opts.compression_per_level(&[ /// opts.set_compression_per_level(&[
/// DBCompressionType::None, /// DBCompressionType::None,
/// DBCompressionType::None, /// DBCompressionType::None,
/// DBCompressionType::Snappy, /// DBCompressionType::Snappy,
@ -344,7 +344,7 @@ impl Options {
/// use rocksdb::Options; /// use rocksdb::Options;
/// ///
/// let mut opts = Options::default(); /// let mut opts = Options::default();
/// opts.allow_os_buffer(false); /// opts.set_allow_os_buffer(false);
/// ``` /// ```
pub fn set_allow_os_buffer(&mut self, is_allow: bool) { pub fn set_allow_os_buffer(&mut self, is_allow: bool) {
unsafe { unsafe {

Loading…
Cancel
Save