Format code in doc comments for good measure

This commit is contained in:
Thom Chiovoloni 2020-11-03 18:41:51 -08:00
parent f0990c38bf
commit 7574124233
2 changed files with 6 additions and 13 deletions

View File

@ -111,10 +111,7 @@
//! // Insert a BLOB into the `content` column of `test_table`. Note that the Blob //! // Insert a BLOB into the `content` column of `test_table`. Note that the Blob
//! // I/O API provides no way of inserting or resizing BLOBs in the DB -- this //! // I/O API provides no way of inserting or resizing BLOBs in the DB -- this
//! // must be done via SQL. //! // must be done via SQL.
//! db.execute( //! db.execute("INSERT INTO test_table (content) VALUES (ZEROBLOB(10))", [])?;
//! "INSERT INTO test_table (content) VALUES (ZEROBLOB(10))",
//! [],
//! )?;
//! //!
//! // Get the row id off the BLOB we just inserted. //! // Get the row id off the BLOB we just inserted.
//! let rowid = db.last_insert_rowid(); //! let rowid = db.last_insert_rowid();
@ -162,10 +159,7 @@
//! // Insert a blob into the `content` column of `test_table`. Note that the Blob //! // Insert a blob into the `content` column of `test_table`. Note that the Blob
//! // I/O API provides no way of inserting or resizing blobs in the DB -- this //! // I/O API provides no way of inserting or resizing blobs in the DB -- this
//! // must be done via SQL. //! // must be done via SQL.
//! db.execute( //! db.execute("INSERT INTO test_table (content) VALUES (ZEROBLOB(10))", [])?;
//! "INSERT INTO test_table (content) VALUES (ZEROBLOB(10))",
//! [],
//! )?;
//! // Get the row id off the blob we just inserted. //! // Get the row id off the blob we just inserted.
//! let rowid = db.last_insert_rowid(); //! let rowid = db.last_insert_rowid();
//! // Open the blob we just inserted for IO. //! // Open the blob we just inserted for IO.

View File

@ -43,11 +43,10 @@
//! let db = Connection::open_in_memory()?; //! let db = Connection::open_in_memory()?;
//! add_regexp_function(&db)?; //! add_regexp_function(&db)?;
//! //!
//! let is_match: bool = db.query_row( //! let is_match: bool =
//! "SELECT regexp('[aeiou]*', 'aaaaeeeiii')", //! db.query_row("SELECT regexp('[aeiou]*', 'aaaaeeeiii')", [], |row| {
//! [], //! row.get(0)
//! |row| row.get(0), //! })?;
//! )?;
//! //!
//! assert!(is_match); //! assert!(is_match);
//! Ok(()) //! Ok(())