diff --git a/aztec/src/state_vars/shared_mutable/scheduled_delay_change.nr b/aztec/src/state_vars/shared_mutable/scheduled_delay_change.nr index 4aeac99..f6dc30e 100644 --- a/aztec/src/state_vars/shared_mutable/scheduled_delay_change.nr +++ b/aztec/src/state_vars/shared_mutable/scheduled_delay_change.nr @@ -5,7 +5,7 @@ mod test; // This data structure is used by SharedMutable to store the minimum delay with which a ScheduledValueChange object can // schedule a change. -// This delay is initally equal to INITIAL_DELAY, and can be safely mutated to any other value over time. This mutation +// This delay is initially equal to INITIAL_DELAY, and can be safely mutated to any other value over time. This mutation // is performed via `schedule_change` in order to satisfy ScheduleValueChange constraints: if e.g. we allowed for the // delay to be decreased immediately then it'd be possible for the state variable to schedule a value change with a // reduced delay, invalidating prior private reads. @@ -58,7 +58,7 @@ impl ScheduledDelayChange { // When changing the delay value we must ensure that it is not possible to produce a value change with a delay // shorter than the current one. let blocks_until_change = if new > current { - // Increasing the delay value can therefore be done immediately: this does not invalidate prior contraints + // Increasing the delay value can therefore be done immediately: this does not invalidate prior constraints // about how quickly a value might be changed (indeed it strengthens them). 0 } else { diff --git a/aztec/src/utils/array/subarray.nr b/aztec/src/utils/array/subarray.nr index fc4b756..52b98f9 100644 --- a/aztec/src/utils/array/subarray.nr +++ b/aztec/src/utils/array/subarray.nr @@ -25,7 +25,7 @@ mod test { #[test] unconstrained fn subarray_into_empty() { - // In all of these cases we're setting DST_LEN to be 0, so we always get back an emtpy array. + // In all of these cases we're setting DST_LEN to be 0, so we always get back an empty array. assert_eq(subarray([], 0), []); assert_eq(subarray([1, 2, 3, 4, 5], 0), []); assert_eq(subarray([1, 2, 3, 4, 5], 2), []);