diff options
| author | Fuwn <[email protected]> | 2023-05-05 01:50:29 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-05-05 01:50:29 +0000 |
| commit | 9fe1f541e7db6a28a316fc2262acb842047d95a5 (patch) | |
| tree | aac77a0274b426c25fbe18e540ca880e91fc740d /src | |
| parent | docs: fix for prelude (diff) | |
| download | windmark-9fe1f541e7db6a28a316fc2262acb842047d95a5.tar.xz windmark-9fe1f541e7db6a28a316fc2262acb842047d95a5.zip | |
docs(router): ignore attach_async example
Diffstat (limited to 'src')
| -rw-r--r-- | src/router.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/router.rs b/src/router.rs index 60dfe2f..1d6b224 100644 --- a/src/router.rs +++ b/src/router.rs @@ -727,9 +727,9 @@ impl Router { /// /// # Examples /// - /// ```rust + /// ```no_run /// use log::info; - /// use windmark::context::HookContext; + /// use windmark::{context::HookContext, router::Router}; /// /// #[derive(Default)] /// struct Clicker { @@ -738,7 +738,7 @@ impl Router { /// /// #[async_trait::async_trait] /// impl windmark::module::AsyncModule for Clicker { - /// async fn on_attach(&mut self, _: &mut windmark::router::Router) { + /// async fn on_attach(&mut self, _: &mut Router) { /// info!("clicker has been attached!"); /// } /// @@ -761,7 +761,7 @@ impl Router { /// } /// } /// - /// windmark::router::Router::new().attach_async(Clicker::default()); + /// Router::new().attach_async(Clicker::default()); /// ``` pub fn attach_async( &mut self, |