Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
omahs authored Sep 20, 2023
1 parent c9927c5 commit c3ed23e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sylvia/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub const fn assert_no_intersection<const N: usize>(msgs: [&[&str]; N]) {
// Compare all elements at current indexes
verify_no_collissions(&msgs, &states, &index);

// Increment index of alaphabeticaly first element
// Increment index of alphabetically first element
states[index] = match states[index] {
State::Ongoing(wi) => {
if msgs[index].len() == wi + 1 {
Expand Down Expand Up @@ -80,7 +80,7 @@ const fn get_next_alphabetical_index<const N: usize>(
}

// Compare values at current indexes saved in states.
// All comparisions are made with value at index which point to alphabetically smallest
// All comparisons are made with value at index which point to alphabetically smallest
// and values in each other arrays at their current position.
//
// Because arrays are sorted we don't have to compare each value with each other
Expand Down

0 comments on commit c3ed23e

Please sign in to comment.