Skip to content

Commit f3b7893

Browse files
authored
chore(program/rust/src): typo fix (#390)
* testinitmappin * testupd * testupd * accounts
1 parent f1db5d2 commit f3b7893

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

program/rust/src/accounts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pub use {
6969

7070
// PDA seeds for accounts.
7171
/// There is a single permissions account under `PERMISSIONS_SEED` that stores which keys
72-
/// are authorized to perform certain adminsitrative actions.
72+
/// are authorized to perform certain administrative actions.
7373
pub const PERMISSIONS_SEED: &str = "permissions";
7474

7575
#[cfg(feature = "pythnet")]

program/rust/src/tests/test_init_mapping.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ fn test_init_mapping() {
195195
let mut permissions_setup = AccountSetup::new_permission(&program_id);
196196
let permissions_account = permissions_setup.as_account_info();
197197

198-
// Permissions account is unitialized
198+
// Permissions account is uninitialized
199199
assert_eq!(
200200
process_instruction(
201201
&program_id,

program/rust/src/tests/test_upd_price.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ fn test_upd_price() {
137137
assert_eq!(price_data.agg_.status_, PC_STATUS_TRADING);
138138
}
139139

140-
// next price doesnt change but slot does
140+
// next price doesn't change but slot does
141141
populate_instruction(&mut instruction_data, 81, 2, 3);
142142
update_clock_slot(&mut clock_account, 4);
143143
assert!(process_instruction(
@@ -163,7 +163,7 @@ fn test_upd_price() {
163163
assert_eq!(price_data.agg_.status_, PC_STATUS_TRADING);
164164
}
165165

166-
// next price doesnt change and neither does aggregate but slot does
166+
// next price doesn't change and neither does aggregate but slot does
167167
populate_instruction(&mut instruction_data, 81, 2, 4);
168168
update_clock_slot(&mut clock_account, 5);
169169
assert!(process_instruction(

program/rust/src/tests/test_upd_price_v2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ fn test_upd_price_v2() -> Result<(), Box<dyn std::error::Error>> {
150150
assert_eq!(price_data.price_cumulative.num_down_slots, 0);
151151
}
152152

153-
// next price doesnt change but slot does
153+
// next price doesn't change but slot does
154154
populate_instruction(&mut instruction_data, 81, 2, 3);
155155
update_clock_slot(&mut clock_account, 4);
156156
process_instruction(
@@ -180,7 +180,7 @@ fn test_upd_price_v2() -> Result<(), Box<dyn std::error::Error>> {
180180
assert_eq!(price_data.price_cumulative.num_down_slots, 0);
181181
}
182182

183-
// next price doesnt change and neither does aggregate but slot does
183+
// next price doesn't change and neither does aggregate but slot does
184184
populate_instruction(&mut instruction_data, 81, 2, 4);
185185
update_clock_slot(&mut clock_account, 5);
186186
process_instruction(

0 commit comments

Comments
 (0)