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

Editorial: Correct a "set" to "let" #249

Merged
merged 2 commits into from
Jan 9, 2025
Merged

Conversation

jeremyroman
Copy link
Collaborator

@jeremyroman jeremyroman commented Jan 8, 2025

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

This use introduces the variable, so it must be "set" (and grammatically
it didn't make sense before, so this is merely a typo).
@jeremyroman jeremyroman requested a review from sisidovski January 8, 2025 21:40
@@ -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|.
Copy link

@shannonbooth shannonbooth Jan 8, 2025

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|.

Copy link
Collaborator

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.

Copy link
Collaborator

@sisidovski sisidovski left a 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|.
Copy link
Collaborator

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.

@jeremyroman jeremyroman merged commit 3f8ef9a into whatwg:main Jan 9, 2025
2 checks passed
@jeremyroman jeremyroman deleted the prefix-let branch January 9, 2025 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants