From 3f8ef9a98e62691830223d997a248002e3a4c91d Mon Sep 17 00:00:00 2001 From: Jeremy Roman Date: Thu, 9 Jan 2025 10:46:39 -0500 Subject: [PATCH] Editorial: Correct "set" to "let" Editorial: Correct "set" to "let" These uses introduce the variable, so must be "set". --- spec.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec.bs b/spec.bs index 876f065..b210a5d 100644 --- a/spec.bs +++ b/spec.bs @@ -1324,12 +1324,12 @@ To parse a pattern string given a [=/pattern string=] |input|, [=/opt 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 "`name`". 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|. 1. Run [=consume a required token=] given |parser| and "`close`". - 1. Set |modifier token| to the result of running [=try to consume a modifier token=] given |parser|. + 1. Let |modifier token| be the result of running [=try to consume a modifier token=] given |parser|. 1. Run [=add a part=] given |parser|, |prefix|, |name token|, |regexp or wildcard token|, |suffix|, and |modifier token|. 1. [=Continue=]. 1. Run [=maybe add a part from the pending fixed value=] given |parser|.