Skip to content

Commit 3f26402

Browse files
committed
Fix some typos
1 parent 2c204b3 commit 3f26402

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

postgres/src/client.rs

+2
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ impl Client {
148148
/// }
149149
/// # Ok(())
150150
/// # }
151+
/// ```
151152
pub fn query_iter<T>(
152153
&mut self,
153154
query: &T,
@@ -213,6 +214,7 @@ impl Client {
213214
/// }
214215
/// # Ok(())
215216
/// # }
217+
/// ```
216218
pub fn prepare_typed(&mut self, query: &str, types: &[Type]) -> Result<Statement, Error> {
217219
self.0.prepare_typed(query, types).wait()
218220
}

tokio-postgres/src/types/mod.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,7 @@ pub trait FromSql<'a>: Sized {
297297
/// The caller of this method is responsible for ensuring that this type
298298
/// is compatible with the Postgres `Type`.
299299
///
300-
/// The default implementation returns
301-
/// `Err(Box::new(WasNull))`.
300+
/// The default implementation returns `Err(Box::new(WasNull))`.
302301
#[allow(unused_variables)]
303302
fn from_sql_null(ty: &Type) -> Result<Self, Box<dyn Error + Sync + Send>> {
304303
Err(Box::new(WasNull))
@@ -543,7 +542,7 @@ pub enum IsNull {
543542
/// # Arrays
544543
///
545544
/// `ToSql` is implemented for `Vec<T>` and `&[T]` where `T` implements `ToSql`,
546-
/// and corresponds to one-dimentional Postgres arrays with an index offset of 1.
545+
/// and corresponds to one-dimensional Postgres arrays with an index offset of 1.
547546
pub trait ToSql: fmt::Debug {
548547
/// Converts the value of `self` into the binary format of the specified
549548
/// Postgres `Type`, appending it to `out`.

0 commit comments

Comments
 (0)