Skip to content

Commit 85172d3

Browse files
authored
Merge pull request #249 from erer1243/update-docs-lifetime
Update doc comments to use lifetime 'async_trait instead of 'async
2 parents f8ce3fb + 92acf81 commit 85172d3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -118,19 +118,19 @@
118118
//! # Explanation
119119
//!
120120
//! Async fns get transformed into methods that return `Pin<Box<dyn Future +
121-
//! Send + 'async>>` and delegate to a private async freestanding function.
121+
//! Send + 'async_trait>>` and delegate to a private async freestanding function.
122122
//!
123123
//! For example the `impl Advertisement for AutoplayingVideo` above would be
124124
//! expanded as:
125125
//!
126126
//! ```
127127
//! # const IGNORE: &str = stringify! {
128128
//! impl Advertisement for AutoplayingVideo {
129-
//! fn run<'async>(
130-
//! &'async self,
131-
//! ) -> Pin<Box<dyn core::future::Future<Output = ()> + Send + 'async>>
129+
//! fn run<'async_trait>(
130+
//! &'async_trait self,
131+
//! ) -> Pin<Box<dyn core::future::Future<Output = ()> + Send + 'async_trait>>
132132
//! where
133-
//! Self: Sync + 'async,
133+
//! Self: Sync + 'async_trait,
134134
//! {
135135
//! async fn run(_self: &AutoplayingVideo) {
136136
//! /* the original method body */

0 commit comments

Comments
 (0)