docs: Rephrase EnumerableStorageMap comment in Rustdocs (#2647)

This commit is contained in:
Luke Schoen
2019-05-22 09:18:18 +02:00
committed by Bastian Köcher
parent 3527f08479
commit 1ce221f0d8
+2 -2
View File
@@ -332,8 +332,8 @@ impl<K: Codec, V: Codec, U> StorageMap<K, V> for U where U: hashed::generator::S
/// A storage map that can be enumerated.
///
/// Note that type is primarily useful for off-chain computations.
/// Runtime implementors should avoid enumerating storage entries.
/// Primarily useful for off-chain computations.
/// Runtime implementors should avoid enumerating storage entries on-chain.
pub trait EnumerableStorageMap<K: Codec, V: Codec>: StorageMap<K, V> {
/// Return current head element.
fn head() -> Option<K>;