Skip to content

Commit

Permalink
chore: fix multiple typos of different importance (#959)
Browse files Browse the repository at this point in the history
  • Loading branch information
crStiv authored Dec 19, 2024
1 parent 7f88eba commit bb6d363
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/db_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1965,7 +1965,7 @@ impl Options {
}
}

/// Enable/dsiable child process inherit open files.
/// Enable/disable child process inherit open files.
///
/// Default: true
pub fn set_is_fd_close_on_exec(&mut self, enabled: bool) {
Expand Down
4 changes: 2 additions & 2 deletions src/transactions/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ impl<'db, DB> Transaction<'db, DB> {
}

/// Returns snapshot associated with transaction if snapshot was enabled in [`TransactionOptions`].
/// Otherwise, returns a snapshot with `nullptr` inside which doesn't effect read operations.
/// Otherwise, returns a snapshot with `nullptr` inside which doesn't affect read operations.
///
/// [`TransactionOptions`]: crate::TransactionOptions
pub fn snapshot(&self) -> SnapshotWithThreadMode<Self> {
Expand Down Expand Up @@ -609,7 +609,7 @@ impl<'db, DB> Transaction<'db, DB> {
}
}

/// Put the key value in the given column famuly and do conflict checking on the key.
/// Put the key value in the given column family and do conflict checking on the key.
///
/// If this transaction was created by a [`TransactionDB`], it can return error of kind:
/// * [`Busy`] if there is a write conflict.
Expand Down
8 changes: 4 additions & 4 deletions tests/test_column_family.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ fn test_column_family() {
}
}

// should properly open db when specyfing all column families
// should properly open db when specifying all column families
{
let mut opts = Options::default();
opts.set_merge_operator_associative("test operator", test_provided_merge);
Expand All @@ -104,7 +104,7 @@ fn test_column_family() {
{}
// TODO should be able to iterate over a cf
{}
// should b able to drop a cf
// should be able to drop a cf
{
#[cfg(feature = "multi-threaded-cf")]
let db = DB::open_cf(&Options::default(), &n, ["cf1"]).unwrap();
Expand Down Expand Up @@ -193,7 +193,7 @@ fn test_column_family_with_transactiondb() {
}
}

// should b able to drop a cf
// should be able to drop a cf
{
let opts = Options::default();
let cfs = &["cf1"];
Expand Down Expand Up @@ -455,7 +455,7 @@ fn test_no_leaked_column_family() {

let large_blob = vec![0x20; 1024 * 1024];

// repeat creating and dropping cfs many time to indirectly detect
// repeat creating and dropping cfs many times to indirectly detect
// possible leak via large dir.
for cf_index in 0..20 {
let cf_name = format!("cf{cf_index}");
Expand Down

0 comments on commit bb6d363

Please sign in to comment.