Skip to content

Commit 4fbd92e

Browse files
committed
A bit of formating cleanup
1 parent ea86a58 commit 4fbd92e

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ struct Person {
2626
}
2727

2828
fn 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() {
7474
Connect to a Postgres server using the standard URI format:
7575
```rust
7676
let 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`
8080
defaults 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
124124
let 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

143143
try!(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
147147
supported via savepoints.
148148

149149
### Type Correspondence

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
//! }
1919
//!
2020
//! fn main() {
21-
//! let conn = Connection::connect("postgresql://postgres@localhost",
22-
//! &NoSsl).unwrap();
21+
//! let conn = Connection::connect("postgresql://postgres@localhost", &NoSsl)
22+
//! .unwrap();
2323
//!
2424
//! conn.execute("CREATE TABLE person (
2525
//! id SERIAL PRIMARY KEY,

0 commit comments

Comments
 (0)