From 75622d36605aea079305dd42937b3dec06aac651 Mon Sep 17 00:00:00 2001 From: Alexander Regueiro Date: Sat, 26 Nov 2016 16:30:25 +0000 Subject: [PATCH] Fixed method names in doc tests. --- src/rocksdb_options.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rocksdb_options.rs b/src/rocksdb_options.rs index 8b6164e..c36a866 100644 --- a/src/rocksdb_options.rs +++ b/src/rocksdb_options.rs @@ -175,7 +175,7 @@ impl Options { /// use rocksdb::{Options, DBCompressionType}; /// /// let mut opts = Options::default(); - /// opts.compression_per_level(&[ + /// opts.set_compression_per_level(&[ /// DBCompressionType::None, /// DBCompressionType::None, /// DBCompressionType::Snappy, @@ -344,7 +344,7 @@ impl Options { /// use rocksdb::Options; /// /// 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) { unsafe {