mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-13 07:32:20 +00:00
proc-macros: add short method summary to its documentation
This commit is contained in:
parent
e2408078bf
commit
ac95a86584
1 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,8 @@ use quote::quote;
|
||||||
use syn::parse_macro_input;
|
use syn::parse_macro_input;
|
||||||
use syn::DeriveInput;
|
use syn::DeriveInput;
|
||||||
|
|
||||||
|
/// Derive macro generating an impl of the trait `ContentHash`.
|
||||||
|
///
|
||||||
/// Derives the `ContentHash` trait for a struct by calling `ContentHash::hash`
|
/// Derives the `ContentHash` trait for a struct by calling `ContentHash::hash`
|
||||||
/// on each of the struct members in the order that they're declared. All
|
/// on each of the struct members in the order that they're declared. All
|
||||||
/// members of the struct must implement the `ContentHash` trait.
|
/// members of the struct must implement the `ContentHash` trait.
|
||||||
|
|
Loading…
Reference in a new issue