Improve spans of pallet macro (#7830)

* fix spans

* convert name to snake case
This commit is contained in:
Guillaume Thiolliere
2021-01-06 10:16:05 +01:00
committed by GitHub
parent d2ac8bd941
commit 66a9093fa3
27 changed files with 303 additions and 144 deletions
+3 -2
View File
@@ -1399,8 +1399,9 @@ pub mod pallet_prelude {
///
/// ### Macro expansion
///
/// Macro generate struct with the name of the function and its generic, and implement
/// `Get<$ReturnType>` on it using the provided function block.
/// Macro renames the function to some internal name, generate a struct with the original name of
/// the function and its generic, and implement `Get<$ReturnType>` by calling the user defined
/// function.
///
/// # Genesis config: `#[pallet::genesis_config]` optional
///