From 2717d98d396c517d9cb14427428cff8364b19a0c Mon Sep 17 00:00:00 2001 From: Amar Singh Date: Thu, 12 Aug 2021 00:51:31 -0400 Subject: [PATCH] fix rust docs for remove storage prefix and take storage item (#9544) --- frame/support/src/storage/migration.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frame/support/src/storage/migration.rs b/frame/support/src/storage/migration.rs index 701b2627f31c4..3713e4d3375d5 100644 --- a/frame/support/src/storage/migration.rs +++ b/frame/support/src/storage/migration.rs @@ -249,7 +249,7 @@ pub fn put_storage_value(module: &[u8], item: &[u8], hash: &[u8], val frame_support::storage::unhashed::put(&key, &value); } -/// Get a particular value in storage by the `module`, the map's `item` name and the key `hash`. +/// Remove all items under a storage prefix by the `module`, the map's `item` name and the key `hash`. pub fn remove_storage_prefix(module: &[u8], item: &[u8], hash: &[u8]) { let mut key = vec![0u8; 32 + hash.len()]; key[0..16].copy_from_slice(&Twox128::hash(module)); @@ -258,7 +258,7 @@ pub fn remove_storage_prefix(module: &[u8], item: &[u8], hash: &[u8]) { frame_support::storage::unhashed::kill_prefix(&key, None); } -/// Get a particular value in storage by the `module`, the map's `item` name and the key `hash`. +/// Take a particular item in storage by the `module`, the map's `item` name and the key `hash`. pub fn take_storage_item( module: &[u8], item: &[u8],