Skip to content

Commit 47cf76e

Browse files
authored
Merge pull request #50 from Mdrbhatti/main
fix spellings
2 parents fc27118 + a36786d commit 47cf76e

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![cfg_attr(doc_cfg, feature(doc_cfg, doc_auto_cfg))]
2-
//! Diesel-async provides async variants of diesel releated query functionality
2+
//! Diesel-async provides async variants of diesel related query functionality
33
//!
4-
//! diesel-async is an extension to diesel itself. It is designed to be used togehter
4+
//! diesel-async is an extension to diesel itself. It is designed to be used together
55
//! with the main diesel crate. It only provides async variants of core diesel traits,
66
//! that perform actual io-work.
77
//! This includes async counterparts the following traits:
@@ -174,7 +174,7 @@ pub trait AsyncConnection: SimpleAsyncConnection + Sized + Send {
174174
/// If a nested transaction fails to release the corresponding savepoint
175175
/// the error will be returned directly.
176176
///
177-
/// **WARNING:** Cancling the returned future does currently **not**
177+
/// **WARNING:** Canceling the returned future does currently **not**
178178
/// close an already open transaction. You may end up with a connection
179179
/// containing a dangling transaction.
180180
///
@@ -247,7 +247,7 @@ pub trait AsyncConnection: SimpleAsyncConnection + Sized + Send {
247247
};
248248
Self::TransactionManager::begin_transaction(self).await?;
249249
// set the test transaction flag
250-
// to pervent that this connection gets droped in connection pools
250+
// to prevent that this connection gets dropped in connection pools
251251
// Tests commonly set the poolsize to 1 and use `begin_test_transaction`
252252
// to prevent modifications to the schema
253253
Self::TransactionManager::transaction_manager_status_mut(self).set_test_transaction_flag();

src/mysql/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ impl AsyncConnection for AsyncMysqlConnection {
9090
// we might error out on too many open statements. See https://github.com/weiznich/diesel_async/issues/26
9191
// for details
9292
//
93-
// This might be problematic for cases where the stream is droped before the end is reached
93+
// This might be problematic for cases where the stream is dropped before the end is reached
9494
//
9595
// Such behaviour might happen if users:
9696
// * Just drop the future/stream after polling at least once (timeouts!!)
@@ -135,7 +135,7 @@ impl AsyncConnection for AsyncMysqlConnection {
135135
// we might error out on too many open statements. See https://github.com/weiznich/diesel_async/issues/26
136136
// for details
137137
//
138-
// This might be problematic for cases where the stream is droped before the end is reached
138+
// This might be problematic for cases where the stream is dropped before the end is reached
139139
//
140140
// Such behaviour might happen if users:
141141
// * Just drop the future after polling at least once (timeouts!!)

src/run_query_dsl/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ pub mod methods {
134134
}
135135
}
136136

137-
/// The return types produces by the various [`RunQueryDsl`] methods
137+
/// The return types produced by the various [`RunQueryDsl`] methods
138138
///
139139
// We cannot box these types as this would require specifying a lifetime,
140140
// but concrete connection implementations might want to have control
141-
// about that so that they can support multiple simultan queries on
141+
// about that so that they can support multiple simultaneous queries on
142142
// the same connection
143143
#[allow(type_alias_bounds)] // we need these bounds otherwise we cannot use GAT's
144144
pub mod return_futures {

tests/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async fn transaction_test(conn: &mut TestConnection) -> QueryResult<()> {
5858
);
5959

6060
let count = users::table.count().get_result::<i64>(conn).await?;
61-
assert_eq!(count, 2, "user got commited, but transaction rolled back");
61+
assert_eq!(count, 2, "user got committed, but transaction rolled back");
6262

6363
Ok(())
6464
}

0 commit comments

Comments
 (0)