Skip to content

Commit 2a7719c

Browse files
crStivzaidoon1
authored andcommitted
chore: fix multiple typos of different importance (#959)
1 parent c7b118e commit 2a7719c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/db_options.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2122,7 +2122,7 @@ impl Options {
21222122
}
21232123
}
21242124

2125-
/// Enable/dsiable child process inherit open files.
2125+
/// Enable/disable child process inherit open files.
21262126
///
21272127
/// Default: true
21282128
pub fn set_is_fd_close_on_exec(&mut self, enabled: bool) {

src/transactions/transaction.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ impl<'db, DB> Transaction<'db, DB> {
180180
}
181181

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

612-
/// Put the key value in the given column famuly and do conflict checking on the key.
612+
/// Put the key value in the given column family and do conflict checking on the key.
613613
///
614614
/// If this transaction was created by a [`TransactionDB`], it can return error of kind:
615615
/// * [`Busy`] if there is a write conflict.

tests/test_column_family.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ fn test_column_family() {
8282
}
8383
}
8484

85-
// should properly open db when specyfing all column families
85+
// should properly open db when specifying all column families
8686
{
8787
let mut opts = Options::default();
8888
opts.set_merge_operator_associative("test operator", test_provided_merge);
@@ -106,7 +106,7 @@ fn test_column_family() {
106106
{}
107107
// TODO should be able to iterate over a cf
108108
{}
109-
// should b able to drop a cf
109+
// should be able to drop a cf
110110
{
111111
#[cfg(feature = "multi-threaded-cf")]
112112
let db = DB::open_cf(&Options::default(), &n, ["cf1"]).unwrap();
@@ -195,7 +195,7 @@ fn test_column_family_with_transactiondb() {
195195
}
196196
}
197197

198-
// should b able to drop a cf
198+
// should be able to drop a cf
199199
{
200200
let opts = Options::default();
201201
let cfs = &["cf1"];
@@ -457,7 +457,7 @@ fn test_no_leaked_column_family() {
457457

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

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

0 commit comments

Comments
 (0)