Skip to content

Commit ed1b751

Browse files
committed
Minor docs cleanup
1 parent 5c866ba commit ed1b751

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct Person {
2020
}
2121
2222
fn main() {
23-
let conn = PostgresConnection::connect("postgres://postgres@localhost",
23+
let conn = PostgresConnection::connect("postgresql://postgres@localhost",
2424
&NoSsl).unwrap();
2525
2626
conn.execute("CREATE TABLE person (
@@ -424,7 +424,6 @@ fn open_unix_socket(path: &Path, port: Port) -> Result<UnixStream,
424424

425425
match UnixStream::connect(&socket) {
426426
Ok(unix) => Ok(unix),
427-
// FIXME bad error variant
428427
Err(err) => Err(SocketError(err))
429428
}
430429
}
@@ -844,8 +843,8 @@ impl PostgresConnection {
844843
/// username if not specified.
845844
///
846845
/// To connect to the server via Unix sockets, `host` should be set to the
847-
/// path to the directory containing the socket file. Since `/` is a
848-
/// reserved character in URLs, the path should be URL encoded. If the
846+
/// absolute path of the directory containing the socket file. Since `/` is
847+
/// a reserved character in URLs, the path should be URL encoded. If the
849848
/// path contains non-UTF 8 characters, a `PostgresConnectParams` struct
850849
/// should be created manually and passed in.
851850
///

0 commit comments

Comments
 (0)