aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--src/lib.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 77d28d1..1204661 100644
--- a/README.md
+++ b/README.md
@@ -41,7 +41,7 @@ let object = &client as &dyn DynClient;
```
1. You add the `#[dynamize::dynamize]` attribute to your trait.
-2. You specify an `Into<T>` bound for each associated type.
+2. You specify a trait bound for each associated type.
Dynamize defines a new trait for you, named after your trait but with the `Dyn`
prefix, so e.g. `Client` becomes `DynClient` in our example. The new
diff --git a/src/lib.rs b/src/lib.rs
index 85718d0..17cea6d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -96,7 +96,7 @@ pub fn dynamize(_attr: TokenStream, input: TokenStream) -> TokenStream {
Err((span, MethodParseError::UnconvertibleAssocType)) => {
return abort!(
span,
- "associated type is either undefined or doesn't have an Into bound"
+ "associated type is either undefined or doesn't have a trait bound"
)
}
Err((span, MethodParseError::AssocTypeInInputs)) => {