Fixed typos in comments.

This commit is contained in:
Kugel Fuhr
2025-07-06 21:07:34 +02:00
parent b7e592699d
commit 8dc815f53f
2 changed files with 6 additions and 6 deletions

View File

@@ -728,7 +728,7 @@ void NextTok (void)
void ErrorExpect (const char* Msg)
/* Output an error message about some expected token using Msg and the
* description of the following token. This means that Msg should contain
* something like "xyz expected". The actual error message would the be
* something like "xyz expected". The actual error message would then be
* "xyz expected but found zyx".
*/
{
@@ -744,7 +744,7 @@ int Expect (token_t Expected, const char* Msg)
/* Check if the next token is the expected one. If not, print Msg plus some
* information about the token that was actually found. This means that Msg
* should contain something like "xyz expected". The actual error message would
* the be "xyz expected but found zyx".
* then be "xyz expected but found zyx".
* Returns true if the token was found, otherwise false.
*/
{
@@ -762,7 +762,7 @@ int ExpectSkip (token_t Expected, const char* Msg)
/* Check if the next token is the expected one. If not, print Msg plus some
* information about the token that was actually found and skip the remainder
* of the line. This means that Msg should contain something like "xyz
* expected". The actual error message would the be "xyz expected but found
* expected". The actual error message would then be "xyz expected but found
* zyx".
* Returns true if the token was found, otherwise false.
*/

View File

@@ -54,7 +54,7 @@ void NextTok (void);
void ErrorExpect (const char* Msg);
/* Output an error message about some expected token using Msg and the
* description of the following token. This means that Msg should contain
* something like "xyz expected". The actual error message would the be
* something like "xyz expected". The actual error message would then be
* "xyz expected but found zyx".
*/
@@ -62,7 +62,7 @@ int Expect (token_t Expected, const char* Msg);
/* Check if the next token is the expected one. If not, print Msg plus some
* information about the token that was actually found. This means that Msg
* should contain something like "xyz expected". The actual error message would
* the be "xyz expected but found zyx".
* then be "xyz expected but found zyx".
* Returns true if the token was found, otherwise false.
*/
@@ -70,7 +70,7 @@ int ExpectSkip (token_t Expected, const char* Msg);
/* Check if the next token is the expected one. If not, print Msg plus some
* information about the token that was actually found and skip the remainder
* of the line. This means that Msg should contain something like "xyz
* expected". The actual error message would the be "xyz expected but found
* expected". The actual error message would then be "xyz expected but found
* zyx".
* Returns true if the token was found, otherwise false.
*/