Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Typos in scheduled_delay_change.nr and subarray.nr #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions aztec/src/state_vars/shared_mutable/scheduled_delay_change.nr
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -58,7 +58,7 @@ impl<let INITIAL_DELAY: u32> ScheduledDelayChange<INITIAL_DELAY> {
// 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 {
Expand Down
2 changes: 1 addition & 1 deletion aztec/src/utils/array/subarray.nr
Original file line number Diff line number Diff line change
Expand Up @@ -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), []);
Expand Down