Skip to content
Snippets Groups Projects
Commit b017e683 authored by Luke Schoen's avatar Luke Schoen Committed by Gavin Wood
Browse files

docs: Update Support SRML to link to StorageDoubleMap in Rustdocs (#2646)

* docs: Update Support SRML to link to StorageDoubleMap in Rustdocs

* review-fix: Add missing backticks. Add trait text for consistency. Fix typo

* review-fix: Move trait text out of link
parent 5ca761c0
No related merge requests found
......@@ -47,10 +47,11 @@ use proc_macro::TokenStream;
///
/// Basic storage consists of a name and a type; supported types are:
///
/// * Value: `Foo: type`: Implements [StorageValue](../srml_support/storage/trait.StorageValue.html).
/// * Map: `Foo: map hasher($hash) type => type`: Implements [StorageMap](../srml_support/storage/trait.StorageMap.html)
/// * Value: `Foo: type`: Implements the [`StorageValue`](../srml_support/storage/trait.StorageValue.html) trait.
/// * Map: `Foo: map hasher($hash) type => type`: Implements the
/// [`StorageMap`](../srml_support/storage/trait.StorageMap.html) trait
/// with `$hash` representing a choice of hashing algorithms available in the
/// [`Hashable` trait](../srml_support/trait.Hashable.html).
/// [`Hashable`](../srml_support/trait.Hashable.html) trait.
///
/// `hasher($hash)` is optional and its default is `blake2_256`.
///
......@@ -59,11 +60,12 @@ use proc_macro::TokenStream;
/// `blake2_256` must be used. Otherwise, other values in storage can be compromised.
///
/// * Linked map: `Foo: linked_map hasher($hash) type => type`: Same as `Map` but also implements
/// [EnumarableStorageMap](../srml_support/storage/trait.EnumerableStorageMap.html).
/// the [`EnumerableStorageMap`](../srml_support/storage/trait.EnumerableStorageMap.html) trait.
///
/// * Double map: `Foo: double_map hasher($hash) u32, $hash2(u32) => u32`: Implements `StorageDoubleMap` with
/// * Double map: `Foo: double_map hasher($hash) u32, $hash2(u32) => u32`: Implements the
/// [`StorageDoubleMap`](../srml_support/storage/trait.StorageDoubleMap.html) trait with
/// `$hash` and `$hash2` representing choices of hashing algorithms available in the
/// [`Hashable` trait](../srml_support/trait.Hashable.html).
/// [`Hashable`](../srml_support/trait.Hashable.html) trait.
///
/// `hasher($hash)` is optional and its default is `blake2_256`.
///
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment