Merge pull request #393 from dfa1/fix-typo

fix typo
This commit is contained in:
Steven Fackler 2018-11-30 10:24:22 -08:00 committed by GitHub
commit ce7580d664
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1268,7 +1268,7 @@ impl Connection {
/// Like `prepare`, but allows for the types of query parameters to be explicitly specified. /// Like `prepare`, but allows for the types of query parameters to be explicitly specified.
/// ///
/// Postgres will normally infer the types of paramters, but this function offers more control /// Postgres will normally infer the types of parameters, but this function offers more control
/// of that behavior. `None` will cause Postgres to infer the type. The list of types can be /// of that behavior. `None` will cause Postgres to infer the type. The list of types can be
/// shorter than the number of parameters in the query; it will act as if padded out with `None` /// shorter than the number of parameters in the query; it will act as if padded out with `None`
/// values. /// values.
@ -1383,7 +1383,7 @@ impl Connection {
/// statements, it's not possible to pass a separate parameters list with /// statements, it's not possible to pass a separate parameters list with
/// this API. /// this API.
/// ///
/// In general, the `query` API should be prefered whenever possible. /// In general, the `query` API should be preferred whenever possible.
/// ///
/// # Example /// # Example
/// ///

View File

@ -316,7 +316,7 @@ impl<'conn> Transaction<'conn> {
self.finish() self.finish()
} }
/// Consumes the transaction, commiting or rolling it back as appropriate. /// Consumes the transaction, committing or rolling it back as appropriate.
/// ///
/// Functionally equivalent to the `Drop` implementation of `Transaction` /// Functionally equivalent to the `Drop` implementation of `Transaction`
/// except that it returns any error to the caller. /// except that it returns any error to the caller.