diff --git a/postgres/src/lib.rs b/postgres/src/lib.rs index 99600ed6..dce02455 100644 --- a/postgres/src/lib.rs +++ b/postgres/src/lib.rs @@ -1268,7 +1268,7 @@ impl Connection { /// 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 /// shorter than the number of parameters in the query; it will act as if padded out with `None` /// values. @@ -1383,7 +1383,7 @@ impl Connection { /// statements, it's not possible to pass a separate parameters list with /// this API. /// - /// In general, the `query` API should be prefered whenever possible. + /// In general, the `query` API should be preferred whenever possible. /// /// # Example /// diff --git a/postgres/src/transaction.rs b/postgres/src/transaction.rs index b00593a0..3769c1a8 100644 --- a/postgres/src/transaction.rs +++ b/postgres/src/transaction.rs @@ -316,7 +316,7 @@ impl<'conn> Transaction<'conn> { 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` /// except that it returns any error to the caller.