From b7fe69f49e02613ba5fff431098b9670beddfd12 Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 27 Sep 2023 19:22:44 +0200 Subject: docs: clarify named macro documentation --- macros/src/lib.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'macros') diff --git a/macros/src/lib.rs b/macros/src/lib.rs index c796d1d..09f54ff 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -457,14 +457,11 @@ pub fn declare_interface(input: TokenStream) -> TokenStream generate_caster(&implementation, &interface_type, is_async).into() } -/// Declares the name of a dependency. +/// Used to declare the name of a dependency in the constructor of a impl block decorated +/// with [`macro@injectable`]. /// -/// This macro attribute doesn't actually do anything. It only exists for the -/// convenience of having intellisense and autocompletion. -/// You might as well just use `named` if you don't care about that. -/// -/// Only means something inside a `new` method inside a impl with -/// the [`macro@injectable`] macro attribute. +/// **This macro attribute doesn't actually do anything**. It only exists for the +/// convenience of having intellisense, autocompletion and documentation. /// /// # Examples /// ``` -- cgit v1.2.3-18-g5258