From 7c4b54cf66562e778d8d0f04c5e3df47cc985ec3 Mon Sep 17 00:00:00 2001 From: cuishuang Date: Wed, 27 Apr 2022 00:17:36 +0800 Subject: [PATCH] fix some typos Signed-off-by: cuishuang --- src/local_infile_handler/mod.rs | 2 +- src/query.rs | 2 +- src/queryable/query_result/result_set_stream.rs | 2 +- src/queryable/stmt.rs | 2 +- src/queryable/transaction.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/local_infile_handler/mod.rs b/src/local_infile_handler/mod.rs index 6d35df4a..3b9ba07a 100644 --- a/src/local_infile_handler/mod.rs +++ b/src/local_infile_handler/mod.rs @@ -27,7 +27,7 @@ pub mod builtin; /// # #[tokio::main] /// # async fn main() -> Result<()> { /// # -/// /// This example hanlder will return contained bytes in response to a local infile request. +/// /// This example handler will return contained bytes in response to a local infile request. /// struct ExampleHandler(&'static [u8]); /// /// impl LocalInfileHandler for ExampleHandler { diff --git a/src/query.rs b/src/query.rs index 9267b547..b54e50bc 100644 --- a/src/query.rs +++ b/src/query.rs @@ -177,7 +177,7 @@ impl + Send + Sync> Query for Q { } } -/// Representaion of a prepared statement query. +/// Representation of a prepared statement query. /// /// See `BinQuery` for details. #[derive(Debug, Clone, PartialEq, Eq)] diff --git a/src/queryable/query_result/result_set_stream.rs b/src/queryable/query_result/result_set_stream.rs index 4f637f22..9210d9b8 100644 --- a/src/queryable/query_result/result_set_stream.rs +++ b/src/queryable/query_result/result_set_stream.rs @@ -213,7 +213,7 @@ where /// ## Consumption /// /// The call to [`QueryResult::stream`] entails the consumption of the current result set, - /// practicly this means that the second call to [`QueryResult::stream`] will return + /// practically this means that the second call to [`QueryResult::stream`] will return /// the next result set stream even if the stream returned from the first call wasn't /// explicitly consumed: /// diff --git a/src/queryable/stmt.rs b/src/queryable/stmt.rs index e601264a..1a170a07 100644 --- a/src/queryable/stmt.rs +++ b/src/queryable/stmt.rs @@ -208,7 +208,7 @@ impl Statement { self.inner.columns() } - /// Requred parameters. + /// Required parameters. pub fn params(&self) -> &[Column] { self.inner.params() } diff --git a/src/queryable/transaction.rs b/src/queryable/transaction.rs index 7e28a32a..53b38ed8 100644 --- a/src/queryable/transaction.rs +++ b/src/queryable/transaction.rs @@ -124,7 +124,7 @@ impl fmt::Display for IsolationLevel { /// `Transaction` is just a sugar for `START TRANSACTION`, `ROLLBACK` and `COMMIT` queries, /// so please note, that it is easy to mess things up calling this queries manually. /// -/// You should alwasy call either `commit` or `rollback`, otherwise transaction will be rolled +/// You should always call either `commit` or `rollback`, otherwise transaction will be rolled /// back implicitly when corresponding connection is dropped or queried. #[derive(Debug)] pub struct Transaction<'a>(pub(crate) Connection<'a, 'static>);