Skip to content

Commit

Permalink
fix: syntax and code comments errors (#24)
Browse files Browse the repository at this point in the history
<!-- 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 -->
  • Loading branch information
intls authored Jan 30, 2025
1 parent 5cca011 commit 40286c5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/connection/statement_iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ impl<'stmt, 'query> Iterator for StatementIterator<'stmt, 'query> {
// by checking if our Rc owns the data or not
if let Some(last_row_ref) = Rc::get_mut(last_row) {
// We own the statement, there is no other reference here.
// This means we don't need to copy out values from the sqlite provided
// datastructures for now
// This means we don't need to copy out values from the SQLite-provided
// data structures for now
// We don't need to use the runtime borrowing system of the RefCell here
// as we have a mutable reference, so all of this below is checked at compile time
if let PrivateSqliteRow::Direct(ref mut stmt) = last_row_ref.get_mut() {
Expand Down
2 changes: 1 addition & 1 deletion src/ffi/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use wasm_bindgen::prelude::*;
/// v if *ffi::SQLITE_DONE == v {
/// /* SQLITE_DONE */
/// },
/// v if *ffi:SQLITE_ROW == v {
/// v if *ffi::SQLITE_ROW == v {
/// /* SQLITE_ROW */
/// }
/// }
Expand Down
2 changes: 1 addition & 1 deletion tests/test/web.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! General tests for migrations/diesel ORM/persistant databases
//! General tests for migrations/diesel ORM/persistent databases
use crate::common::prelude::*;
use sqlite_web::dsl::RunQueryDsl;

Expand Down

0 comments on commit 40286c5

Please sign in to comment.