@@ -91,8 +91,8 @@ extern "C" {
9191 fn lsm_csr_next ( cursor : * mut lsm_cursor ) -> i32 ;
9292 fn lsm_csr_prev ( cursor : * mut lsm_cursor ) -> i32 ;
9393 fn lsm_csr_valid ( cursor : * mut lsm_cursor ) -> i32 ;
94- fn lsm_csr_key ( cursor : * mut lsm_cursor , pp_key : * const * mut u8 , pn_key : * mut i32 ) -> i32 ;
95- fn lsm_csr_value ( cursor : * mut lsm_cursor , pp_val : * const * mut u8 , pn_val : * mut i32 ) -> i32 ;
94+ fn lsm_csr_key ( cursor : * mut lsm_cursor , pp_key : * const * mut u8 , pn_key : * mut i32 ) -> i32 ; // # spellchecker:disable-line
95+ fn lsm_csr_value ( cursor : * mut lsm_cursor , pp_val : * const * mut u8 , pn_val : * mut i32 ) -> i32 ; // # spellchecker:disable-line
9696 fn lsm_csr_cmp ( cursor : * mut lsm_cursor , p_key : * const u8 , n_key : i32 , pi_res : * mut i32 ) -> i32 ;
9797 #[ allow( dead_code) ]
9898 fn lsm_free ( env : * mut lsm_env , ptr : * mut c_char ) ;
@@ -401,8 +401,8 @@ impl Disk for LsmDb {
401401 /// to `connect` has to have the corresponding call to `disconnect`, otherwise:
402402 /// 1. The resources that belong to the memory handle will be leaked.
403403 /// 2. The database (file) won't be closed and the next time we open it the recovery
404- /// process will kick-in (which can take considerable time. Depending on the
405- /// size of the log).
404+ /// process will kick-in (which can take considerable time. Depending on the
405+ /// size of the log).
406406 ///
407407 /// For completeness, [`LsmDb`] also implements [`Drop`] so that a handle
408408 /// gets automatically released once it goes out of scope.
@@ -969,15 +969,15 @@ impl Cursor for LsmCursor<'_> {
969969 /// This positions the cursor on an entry of the database that depends on
970970 /// the seek mode provided:
971971 /// 1. If [`LsmCursorSeekOp::LsmCursorSeekLe`] is given, then the cursor will be positioned
972- /// at the entry that is less or equal than the provided key depending on whether
973- /// the key is found in the database or not.
972+ /// at the entry that is less or equal than the provided key depending on whether
973+ /// the key is found in the database or not.
974974 /// 2. If [`LsmCursorSeekOp::LsmCursorSeekEq`] is given, then the cursor will be positioned
975- /// at the entry that corresponding to the given key, or at the end of the database
976- /// depending on whether the entry is found or not. If the entry is found, a call
977- /// to `valid` on the cursor will return success, and otherwise an error.
975+ /// at the entry that corresponding to the given key, or at the end of the database
976+ /// depending on whether the entry is found or not. If the entry is found, a call
977+ /// to `valid` on the cursor will return success, and otherwise an error.
978978 /// 3. If [`LsmCursorSeekOp::LsmCursorSeekGe`] is given, then the cursor will be positioned
979- /// at the entry that is greater or equal than the provided key depending on
980- /// whether the key is found in the database or not.
979+ /// at the entry that is greater or equal than the provided key depending on
980+ /// whether the key is found in the database or not.
981981 fn seek ( & mut self , key : & [ u8 ] , mode : LsmCursorSeekOp ) -> Result < ( ) , LsmErrorCode > {
982982 if self . db_cursor . is_null ( ) {
983983 return Err ( LsmErrorCode :: LsmMisuse ) ;
0 commit comments