Skip to content

Commit afa8a03

Browse files
committed
fix typo
1 parent d9d81b5 commit afa8a03

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

postgres/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,7 @@ impl Connection {
12681268

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

postgres/src/transaction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ impl<'conn> Transaction<'conn> {
316316
self.finish()
317317
}
318318

319-
/// Consumes the transaction, commiting or rolling it back as appropriate.
319+
/// Consumes the transaction, committing or rolling it back as appropriate.
320320
///
321321
/// Functionally equivalent to the `Drop` implementation of `Transaction`
322322
/// except that it returns any error to the caller.

0 commit comments

Comments
 (0)