aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-22 15:31:51 +0100
committerMartin Fischer <martin@push-f.com>2021-11-22 15:31:51 +0100
commita0ec23e259359bbbd115d6159193a361c8ce24df (patch)
tree3de51b4b3c3fe9622647084ca879ebeeda1d889b
parent01dfd7846a11715a643e3263a1c2bc3a123e3c17 (diff)
improve attribute documentation
-rw-r--r--README.md10
1 files 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.