Skip to content

Commit

Permalink
Make the argument's name of set_max_dbs consistent
Browse files Browse the repository at this point in the history
This was confusing to the reader of the documentation.
  • Loading branch information
acatton committed Jun 20, 2019
1 parent c64f0b4 commit 3619987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ impl EnvironmentBuilder {
/// Currently a moderate number of slots are cheap but a huge number gets
/// expensive: 7-120 words per transaction, and every `Transaction::open_db`
/// does a linear search of the opened slots.
pub fn set_max_dbs(&mut self, max_readers: c_uint) -> &mut EnvironmentBuilder {
self.max_dbs = Some(max_readers);
pub fn set_max_dbs(&mut self, max_dbs: c_uint) -> &mut EnvironmentBuilder {
self.max_dbs = Some(max_dbs);
self
}

Expand Down

0 comments on commit 3619987

Please sign in to comment.