Improve spans of pallet macro (#7830)

* fix spans

* convert name to snake case
This commit is contained in:
Guillaume Thiolliere authored and GitHub committed 2021-01-06 09:16:05 +00:00
1 parent d2ac8bd941
commit 66a9093fa3
27 files changed
+303 -144

No files matched your search

+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
///