Skip to content

Commit 486e558

Browse files
committed
another comment
1 parent 546efd7 commit 486e558

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

program/rust/src/validator.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ pub fn aggregate_price(
142142
])
143143
}
144144

145+
/// Load a price account as read-only, returning `None` if it isn't a valid price account.
145146
fn checked_load_price_account(price_account_info: &[u8]) -> Option<&PriceAccount> {
146147
check_price_account_header(price_account_info).ok()?;
147148
Some(bytemuck::from_bytes::<PriceAccount>(

0 commit comments

Comments
 (0)