|
1 | 1 | #![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 |
3 | 3 | //! |
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 |
5 | 5 | //! with the main diesel crate. It only provides async variants of core diesel traits, |
6 | 6 | //! that perform actual io-work. |
7 | 7 | //! This includes async counterparts the following traits: |
@@ -174,7 +174,7 @@ pub trait AsyncConnection: SimpleAsyncConnection + Sized + Send { |
174 | 174 | /// If a nested transaction fails to release the corresponding savepoint |
175 | 175 | /// the error will be returned directly. |
176 | 176 | /// |
177 | | - /// **WARNING:** Cancling the returned future does currently **not** |
| 177 | + /// **WARNING:** Canceling the returned future does currently **not** |
178 | 178 | /// close an already open transaction. You may end up with a connection |
179 | 179 | /// containing a dangling transaction. |
180 | 180 | /// |
@@ -247,7 +247,7 @@ pub trait AsyncConnection: SimpleAsyncConnection + Sized + Send { |
247 | 247 | }; |
248 | 248 | Self::TransactionManager::begin_transaction(self).await?; |
249 | 249 | // 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 |
251 | 251 | // Tests commonly set the poolsize to 1 and use `begin_test_transaction` |
252 | 252 | // to prevent modifications to the schema |
253 | 253 | Self::TransactionManager::transaction_manager_status_mut(self).set_test_transaction_flag(); |
|
0 commit comments