From 9d2532832201ee7b7f4141d92ebe8e1d348e9ee9 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Fri, 18 Sep 2015 23:26:14 -0700 Subject: [PATCH] Doc fixes --- src/error.rs | 8 ++++---- src/lib.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/error.rs b/src/error.rs index b27aba7b..9600df27 100644 --- a/src/error.rs +++ b/src/error.rs @@ -195,20 +195,20 @@ impl error::Error for DbError { pub enum ConnectError { /// An error creating `ConnectParams`. BadConnectParams(Box), - /// The URL was missing a user. + /// The `ConnectParams` was missing a user. MissingUser, /// An error from the Postgres server itself. DbError(Box), - /// A password was required but not provided in the URL. + /// A password was required but not provided in the `ConnectParams`. MissingPassword, /// The Postgres server requested an authentication method not supported /// by the driver. UnsupportedAuthentication, /// The Postgres server does not support SSL encryption. NoSslSupport, - /// There was an error initializing the SSL session. + /// An error initializing the SSL session. SslError(Box), - /// There was an error communicating with the server. + /// An error communicating with the server. IoError(io::Error), } diff --git a/src/lib.rs b/src/lib.rs index 811f406a..40f4592e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -881,7 +881,7 @@ impl Connection { 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. pub fn notifications<'a>(&'a self) -> Notifications<'a> {