proc-macros: add short method summary to its documentation

This commit is contained in:
Samuel Tardieu 2024-10-04 06:16:42 +02:00
parent e2408078bf
commit ac95a86584

View file

@ -6,6 +6,8 @@ use quote::quote;
use syn::parse_macro_input;
use syn::DeriveInput;
/// Derive macro generating an impl of the trait `ContentHash`.
///
/// 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
/// members of the struct must implement the `ContentHash` trait.