diff --git a/substrate/frame/support/src/lib.rs b/substrate/frame/support/src/lib.rs index 76405d939b..34836dd551 100644 --- a/substrate/frame/support/src/lib.rs +++ b/substrate/frame/support/src/lib.rs @@ -115,11 +115,12 @@ impl TypeId for PalletId { /// // generate a storage value with type u32. /// generate_storage_alias!(Prefix, StorageName => Value); /// -/// // generate a double map from `(u32, u32)` (with hasher `Twox64Concat`) to `Vec` +/// // generate a double map from `(u32, u32)` (with hashers `Twox64Concat` for each key) +/// // to `Vec` /// generate_storage_alias!( /// OtherPrefix, OtherStorageName => DoubleMap< -/// (u32, u32), -/// (u32, u32), +/// (u32, Twox64Concat), +/// (u32, Twox64Concat), /// Vec /// > /// ); @@ -127,7 +128,7 @@ impl TypeId for PalletId { /// // generate a map from `Config::AccountId` (with hasher `Twox64Concat`) to `Vec` /// trait Config { type AccountId: codec::FullCodec; } /// generate_storage_alias!( -/// Prefix, GenericStorage => Map<(Twox64Concat, T::AccountId), Vec> +/// Prefix, GenericStorage => Map<(T::AccountId, Twox64Concat), Vec> /// ); /// # fn main() {} /// ```