diff options
author | HampusM <hampus@hampusmat.com> | 2023-09-27 19:22:44 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-09-27 19:22:44 +0200 |
commit | b7fe69f49e02613ba5fff431098b9670beddfd12 (patch) | |
tree | 3d422db6b0e409d125ff8a19f7fa83bd593fb08b /macros/src/lib.rs | |
parent | 16faec1cdf2cba12a4e599714e56256edea15854 (diff) |
docs: clarify named macro documentation
Diffstat (limited to 'macros/src/lib.rs')
-rw-r--r-- | macros/src/lib.rs | 11 |
1 files changed, 4 insertions, 7 deletions
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 /// ``` |