aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-07-18 21:35:40 +0200
committerHampusM <hampus@hampusmat.com>2022-07-18 21:35:40 +0200
commit46196985639833eae6cceea48751efaeabf5600c (patch)
tree8d41eac890d2143ae213380cd1d6e2e2d49f2b11
parent50ab663284fa31e805a7afef5834a55393812a49 (diff)
docs: correct declare_interface macro example
-rw-r--r--syrette_macros/src/lib.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/syrette_macros/src/lib.rs b/syrette_macros/src/lib.rs
index 33c9b86..f686e1e 100644
--- a/syrette_macros/src/lib.rs
+++ b/syrette_macros/src/lib.rs
@@ -148,8 +148,13 @@ pub fn factory(_: TokenStream, type_alias_stream: TokenStream) -> TokenStream
///
/// # Examples
/// ```
-/// declare_interface!(IClientService -> ClientService);
+/// declare_interface!(ClientService -> IClientService);
+///
/// ```
+///
+/// With `ClientService` in this case being the concrete
+/// implementation and `IClientService` being the interface trait.
+///
#[proc_macro]
pub fn declare_interface(input: TokenStream) -> TokenStream
{