Skip to content

Commit

Permalink
No need to reference the struct in doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
phklive committed Sep 17, 2024
1 parent 6bfe2c6 commit 2a30d7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions objects/src/accounts/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit 2a30d7e

Please sign in to comment.