Fix syntax in README

This commit is contained in:
Steven Fackler 2014-06-05 20:44:23 -07:00
parent 21feed4bd8
commit ee8b788c3f

View File

@ -112,7 +112,7 @@ Both methods take an array of parameters to bind to the query represented as
query (or 0 if not applicable):
```rust
let stmt = try!(conn.prepare("UPDATE foo SET bar = $1 WHERE baz = $2"));
let updates = try!(stmt.execute([&1i32 as &ToSql, & &"biz" as &ToSql]));
let updates = try!(stmt.execute([&1i32 as &ToSql, &"biz" as &ToSql]));
println!("{} rows were updated", updates);
```
`query` returns an iterator over the rows returned from the database. The