Skip to content

Commit b35dde7

Browse files
committed
Readme fixes
1 parent e5c2eda commit b35dde7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ fn main() {
7979
Connect to a Postgres server using the standard URI format:
8080
```rust
8181
let conn = try!(Connection::connect("postgres://user:pass@host:port/database?arg1=val1&arg2=val2",
82-
&NoSsl));
82+
&SslMode::None));
8383
```
8484
`pass` may be omitted if not needed. `port` defaults to `5432` and `database`
8585
defaults to the value of `user` if not specified. The driver supports `trust`,
@@ -89,7 +89,7 @@ Unix domain sockets can be used as well. The `host` portion of the URI should be
8989
set to the absolute path to the directory containing the socket file. Since `/`
9090
is a reserved character in URLs, the path should be URL encoded.
9191
```rust
92-
let conn = try!(Connection::connect("postgres://postgres@%2Frun%2Fpostgres", &NoSsl));
92+
let conn = try!(Connection::connect("postgres://postgres@%2Frun%2Fpostgres", &SslMode::None));
9393
```
9494
Paths which contain non-UTF8 characters can be handled in a different manner;
9595
see the documentation for details.

0 commit comments

Comments
 (0)