From 46196985639833eae6cceea48751efaeabf5600c Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 18 Jul 2022 21:35:40 +0200 Subject: docs: correct declare_interface macro example --- syrette_macros/src/lib.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'syrette_macros') 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 { -- cgit v1.2.3-18-g5258