Make the example code in the crate docs be the same as the README

This commit is contained in:
Thom Chiovoloni 2022-03-06 22:55:34 -08:00
parent 5923d0c8bd
commit 74e4fa008e

View File

@ -20,7 +20,7 @@
//! name TEXT NOT NULL,
//! data BLOB
//! )",
//! [],
//! (), // empty list of parameters.
//! )?;
//! let me = Person {
//! id: 0,
@ -29,7 +29,7 @@
//! };
//! conn.execute(
//! "INSERT INTO person (name, data) VALUES (?1, ?2)",
//! (me.name, me.data),
//! (&me.name, &me.data),
//! )?;
//!
//! let mut stmt = conn.prepare("SELECT id, name, data FROM person")?;