Skip to content

Commit cbc0b92

Browse files
darnuriaKerollmops
andauthored
Apply suggestions from code review
Co-authored-by: Clément Renault <[email protected]>
1 parent a7c7bc8 commit cbc0b92

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

heed/src/txn.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ use crate::{Env, Result};
77

88
/// A read-only transaction.
99
///
10-
/// ## LMDB Limitation
10+
/// ## LMDB Limitations
1111
///
12-
/// It's a must to keep read transaction short lived.
12+
/// It's a must to keep read transactions short-lived.
1313
///
14-
/// Active Read transactions prevent reuse of pages freed
14+
/// Active Read transactions prevent the reuse of pages freed
1515
/// by newer write transactions, thus the database can grow quickly.
1616
pub struct RoTxn<'e> {
1717
pub(crate) txn: *mut ffi::MDB_txn,
@@ -58,8 +58,10 @@ fn abort_txn(txn: *mut ffi::MDB_txn) {
5858

5959
/// A read-write transaction.
6060
///
61-
/// Only one [RwTxn] may exist on the same environnement at the same time,
62-
/// it two exist the new one may wait on a Mutex for [RwTxn::commit] or [RwTxn::abort] of
61+
/// ## LMDB Limitations
62+
///
63+
/// Only one [RwTxn] may exist in the same environment at the same time,
64+
/// it two exist, the new one may wait on a Mutex for [RwTxn::commit] or [RwTxn::abort] of
6365
/// the first one.
6466
pub struct RwTxn<'p> {
6567
pub(crate) txn: RoTxn<'p>,

0 commit comments

Comments
 (0)