From 2a30d7e816b9fa8873eb2fbcee91d1319ea82200 Mon Sep 17 00:00:00 2001 From: Paul-Henry Kajfasz Date: Tue, 17 Sep 2024 19:30:40 +0200 Subject: [PATCH] No need to reference the struct in doc comments --- objects/src/accounts/storage/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/objects/src/accounts/storage/mod.rs b/objects/src/accounts/storage/mod.rs index 3abfe947c..631c97f2d 100644 --- a/objects/src/accounts/storage/mod.rs +++ b/objects/src/accounts/storage/mod.rs @@ -32,7 +32,7 @@ pub struct AccountStorage { } impl AccountStorage { - /// The maximum number of storage slots allowed in an [AccountStorage] + /// The maximum number of storage slots allowed in an account storage. pub const MAX_NUM_STORAGE_SLOTS: usize = 255; // CONSTRUCTOR @@ -62,7 +62,7 @@ impl AccountStorage { build_slots_commitment(&self.slots) } - /// Converts storage slots of this [AccountStorage] into a vector of field elements. + /// Converts storage slots of this account storage into a vector of field elements. /// /// This is done by first converting each procedure into exactly 8 elements as follows: /// ```text @@ -102,7 +102,7 @@ impl AccountStorage { } } - /// Returns an [AccountStorageHeader] for this [AccountStorage]. + /// Returns an [AccountStorageHeader] for this account storage. pub fn get_header(&self) -> AccountStorageHeader { AccountStorageHeader::new( self.slots.iter().map(|slot| (slot.slot_type(), slot.value())).collect(),