mirror of
https://github.com/isar/rusqlite.git
synced 2025-03-31 19:12:58 +08:00
Merge pull request #1555 from OldEnglishSheepdog/params-doc
Correcting inconsistent parameter name (:value/:val) in doctest example
This commit is contained in:
commit
eff71a4497
@ -124,7 +124,7 @@ use sealed::Sealed;
|
||||
/// ```rust,no_run
|
||||
/// # use rusqlite::{Connection, Result, named_params};
|
||||
/// fn insert(conn: &Connection) -> Result<()> {
|
||||
/// let mut stmt = conn.prepare("INSERT INTO test (key, value) VALUES (:key, :value)")?;
|
||||
/// let mut stmt = conn.prepare("INSERT INTO test (key, value) VALUES (:key, :val)")?;
|
||||
/// // Using `rusqlite::params!`:
|
||||
/// stmt.execute(named_params! { ":key": "one", ":val": 2 })?;
|
||||
/// // Alternatively:
|
||||
|
Loading…
x
Reference in New Issue
Block a user