@@ -26,8 +26,8 @@ struct Person {
2626}
2727
2828fn main () {
29- let conn = Connection :: connect (" postgres://postgres@localhost" ,
30- & NoSsl ) . unwrap ();
29+ let conn = Connection :: connect (" postgres://postgres@localhost" , & NoSsl )
30+ . unwrap ();
3131
3232 conn . execute (" CREATE TABLE person (
3333 id SERIAL PRIMARY KEY,
@@ -74,7 +74,7 @@ fn main() {
7474Connect to a Postgres server using the standard URI format:
7575``` rust
7676let conn = try ! (Connection :: connect (" postgres://user:pass@host:port/database?arg1=val1&arg2=val2" ,
77- & NoSsl ));
77+ & NoSsl ));
7878```
7979` pass ` may be omitted if not needed. ` port ` defaults to ` 5432 ` and ` database `
8080defaults to the value of ` user ` if not specified. The driver supports ` trust ` ,
@@ -118,8 +118,8 @@ for row in try!(stmt.query([])) {
118118 println! (" bar: {}, baz: {}" , bar , baz );
119119}
120120```
121- In addition, ` Connection ` has a utility ` execute ` method which is useful
122- if a statement is only going to be executed once:
121+ In addition, ` Connection ` has a utility ` execute ` method which is useful if a
122+ statement is only going to be executed once:
123123``` rust
124124let updates = try ! (conn . execute (" UPDATE foo SET bar = $1 WHERE baz = $2" ,
125125 & [& 1i32 , & " biz" ]));
@@ -142,8 +142,8 @@ if the_coast_is_clear {
142142
143143try ! (trans . finish ());
144144```
145- The transaction will be active until the ` Transaction ` object falls out
146- of scope. A transaction will roll back by default. Nested transactions are
145+ The transaction will be active until the ` Transaction ` object falls out of
146+ scope. A transaction will roll back by default. Nested transactions are
147147supported via savepoints.
148148
149149### Type Correspondence
0 commit comments