Doc fixes

This commit is contained in:
Steven Fackler 2015-09-18 23:26:14 -07:00
parent e7d4a7e062
commit 9d25328322
2 changed files with 5 additions and 5 deletions

View File

@ -195,20 +195,20 @@ impl error::Error for DbError {
pub enum ConnectError { pub enum ConnectError {
/// An error creating `ConnectParams`. /// An error creating `ConnectParams`.
BadConnectParams(Box<error::Error+Sync+Send>), BadConnectParams(Box<error::Error+Sync+Send>),
/// The URL was missing a user. /// The `ConnectParams` was missing a user.
MissingUser, MissingUser,
/// An error from the Postgres server itself. /// An error from the Postgres server itself.
DbError(Box<DbError>), DbError(Box<DbError>),
/// A password was required but not provided in the URL. /// A password was required but not provided in the `ConnectParams`.
MissingPassword, MissingPassword,
/// The Postgres server requested an authentication method not supported /// The Postgres server requested an authentication method not supported
/// by the driver. /// by the driver.
UnsupportedAuthentication, UnsupportedAuthentication,
/// The Postgres server does not support SSL encryption. /// The Postgres server does not support SSL encryption.
NoSslSupport, NoSslSupport,
/// There was an error initializing the SSL session. /// An error initializing the SSL session.
SslError(Box<error::Error+Sync+Send>), SslError(Box<error::Error+Sync+Send>),
/// There was an error communicating with the server. /// An error communicating with the server.
IoError(io::Error), IoError(io::Error),
} }

View File

@ -881,7 +881,7 @@ impl Connection {
self.conn.borrow_mut().set_notice_handler(handler) self.conn.borrow_mut().set_notice_handler(handler)
} }
/// Returns an iterator over asynchronous notification messages. /// Returns a structure providing access to asynchronous notifications.
/// ///
/// Use the `LISTEN` command to register this connection for notifications. /// Use the `LISTEN` command to register this connection for notifications.
pub fn notifications<'a>(&'a self) -> Notifications<'a> { pub fn notifications<'a>(&'a self) -> Notifications<'a> {