diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | src/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 @@ -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)) => { |