Skip to content

Commit 9d25328

Browse files
committed
Doc fixes
1 parent e7d4a7e commit 9d25328

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/error.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,20 +195,20 @@ impl error::Error for DbError {
195195
pub enum ConnectError {
196196
/// An error creating `ConnectParams`.
197197
BadConnectParams(Box<error::Error+Sync+Send>),
198-
/// The URL was missing a user.
198+
/// The `ConnectParams` was missing a user.
199199
MissingUser,
200200
/// An error from the Postgres server itself.
201201
DbError(Box<DbError>),
202-
/// A password was required but not provided in the URL.
202+
/// A password was required but not provided in the `ConnectParams`.
203203
MissingPassword,
204204
/// The Postgres server requested an authentication method not supported
205205
/// by the driver.
206206
UnsupportedAuthentication,
207207
/// The Postgres server does not support SSL encryption.
208208
NoSslSupport,
209-
/// There was an error initializing the SSL session.
209+
/// An error initializing the SSL session.
210210
SslError(Box<error::Error+Sync+Send>),
211-
/// There was an error communicating with the server.
211+
/// An error communicating with the server.
212212
IoError(io::Error),
213213
}
214214

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ impl Connection {
881881
self.conn.borrow_mut().set_notice_handler(handler)
882882
}
883883

884-
/// Returns an iterator over asynchronous notification messages.
884+
/// Returns a structure providing access to asynchronous notifications.
885885
///
886886
/// Use the `LISTEN` command to register this connection for notifications.
887887
pub fn notifications<'a>(&'a self) -> Notifications<'a> {

0 commit comments

Comments
 (0)