Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 40286c5

Browse files
authored
fix: syntax and code comments errors (#24)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Documentation** - Corrected spelling of "persistent" in test comments - Updated comment casing and formatting in SQLite-related documentation - Improved syntax for module constant referencing in comments These changes are purely documentation-related and do not impact the functionality of the code. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 5cca011 commit 40286c5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/connection/statement_iterator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ impl<'stmt, 'query> Iterator for StatementIterator<'stmt, 'query> {
111111
// by checking if our Rc owns the data or not
112112
if let Some(last_row_ref) = Rc::get_mut(last_row) {
113113
// We own the statement, there is no other reference here.
114-
// This means we don't need to copy out values from the sqlite provided
115-
// datastructures for now
114+
// This means we don't need to copy out values from the SQLite-provided
115+
// data structures for now
116116
// We don't need to use the runtime borrowing system of the RefCell here
117117
// as we have a mutable reference, so all of this below is checked at compile time
118118
if let PrivateSqliteRow::Direct(ref mut stmt) = last_row_ref.get_mut() {

src/ffi/constants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use wasm_bindgen::prelude::*;
1313
/// v if *ffi::SQLITE_DONE == v {
1414
/// /* SQLITE_DONE */
1515
/// },
16-
/// v if *ffi:SQLITE_ROW == v {
16+
/// v if *ffi::SQLITE_ROW == v {
1717
/// /* SQLITE_ROW */
1818
/// }
1919
/// }

tests/test/web.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! General tests for migrations/diesel ORM/persistant databases
1+
//! General tests for migrations/diesel ORM/persistent databases
22
use crate::common::prelude::*;
33
use sqlite_web::dsl::RunQueryDsl;
44

0 commit comments

Comments
 (0)