-
Notifications
You must be signed in to change notification settings - Fork 23
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
Editorial: Correct a "set" to "let" #249
Conversation
This use introduces the variable, so it must be "set" (and grammatically it didn't make sense before, so this is merely a typo).
@@ -1324,7 +1324,7 @@ To <dfn>parse a pattern string</dfn> given a [=/pattern string=] |input|, [=/opt | |||
</dl> | |||
</div> | |||
1. If |open token| is not null: | |||
1. Set |prefix| be the result of running [=consume text=] given |parser|. | |||
1. Let |prefix| be the result of running [=consume text=] given |parser|. | |||
1. Set |name token| to the result of running [=try to consume a token=] given |parser| and "<a for=token/type>`name`</a>". | |||
1. Set |regexp or wildcard token| to the result of running [=try to consume a regexp or wildcard token=] given |parser| and |name token|. | |||
1. Let |suffix| be the result of running [=consume text=] given |parser|. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't comment on the exact line, but I believe step 6 just below should also be changed to "Let":
1. Set |modifier token| to the result of running [=try to consume a modifier token=] given |parser|.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this looks also a typo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM w/ remaining comment.
@@ -1324,7 +1324,7 @@ To <dfn>parse a pattern string</dfn> given a [=/pattern string=] |input|, [=/opt | |||
</dl> | |||
</div> | |||
1. If |open token| is not null: | |||
1. Set |prefix| be the result of running [=consume text=] given |parser|. | |||
1. Let |prefix| be the result of running [=consume text=] given |parser|. | |||
1. Set |name token| to the result of running [=try to consume a token=] given |parser| and "<a for=token/type>`name`</a>". | |||
1. Set |regexp or wildcard token| to the result of running [=try to consume a regexp or wildcard token=] given |parser| and |name token|. | |||
1. Let |suffix| be the result of running [=consume text=] given |parser|. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this looks also a typo.
This use introduces the variable, so it must be "set" (and grammatically it didn't make sense before, so this is merely a typo).
Partially addresses #242.
Preview | Diff