We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55c0674 commit 729debeCopy full SHA for 729debe
1 file changed
README.md
@@ -95,7 +95,7 @@ A prepared statement can be executed with the `query` and `update` methods.
95
Both methods take an array of parameters to bind to the query represented as
96
`&ToSql` trait objects. `update` returns the number of rows affected by the
97
query (or 0 if not applicable):
98
-```
+```rust
99
let stmt = conn.prepare("UPDATE foo SET bar = $1 WHERE baz = $2");
100
let updates = stmt.update([&1i32 as &ToSql, & &"biz" as &ToSql]);
101
println!("{} rows were updated", updates);
0 commit comments