Skip to content

Commit

Permalink
Fix typo in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
adriweb committed Aug 5, 2024
1 parent a4e73e3 commit dae6c2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TypeHandlers/TH_Tokenized.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ namespace tivars::TypeHandlers
const uint16_t twoFirstBytes = (uint16_t) ((data[3] & 0xFF) + ((data[2] & 0xFF) << 8));
if (std::find(std::begin(squishedASMTokens), std::end(squishedASMTokens), twoFirstBytes) != std::end(squishedASMTokens))
{
return "[Error] This is a squished ASM program - cannnot preview it!";
return "[Error] This is a squished ASM program - cannot preview it!";
}
}

Expand Down Expand Up @@ -462,7 +462,7 @@ namespace tivars::TypeHandlers
const uint16_t twoFirstBytes = (uint16_t) ((data[1] & 0xFF) + ((data[0] & 0xFF) << 8));
if (std::find(std::begin(squishedASMTokens), std::end(squishedASMTokens), twoFirstBytes) != std::end(squishedASMTokens))
{
throw std::invalid_argument("This is a squished ASM program - cannnot process it!");
throw std::invalid_argument("This is a squished ASM program - cannot process it!");
}
}

Expand Down

0 comments on commit dae6c2e

Please sign in to comment.