From a0ec23e259359bbbd115d6159193a361c8ce24df Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Mon, 22 Nov 2021 15:31:51 +0100 Subject: improve attribute documentation --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 02c9d5d..6051fb5 100644 --- a/README.md +++ b/README.md @@ -142,8 +142,8 @@ trait Client: Sync { } ``` -The `#[dyn_trait_attr(...)]` attribute lets you attach macro attributes to the -generated dynamized trait. The `#[blanket_impl_attr(...)]` attribute lets you -attach macro attributes to the generated blanket implementation. Note that it -is important that the dynamize attribute comes before the `async_trait` -attribute. +* `#[dyn_trait_attr(foo)]` attaches `#[foo]` to the dynamized trait +* `#[blanket_impl_attr(foo)]` attaches `#[foo]` to the blanket implementation + +Note that it is important that the `#[dynamize]` attribute comes before the +`#[async_trait]` attribute, since dynamize must run before async_trait. -- cgit v1.2.3