Skip to content

Commit 0134965

Browse files
otherdanielevilpie
andauthored
Make the SanitizerConfig remove algorithm return a boolean. (#334)
* Make SanitizerConfig/remove return a boolean. * Be explicit about how the boolean is computed. Co-authored-by: Tom Schuster <[email protected]>
1 parent d2770f7 commit 0134965

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

index.bs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,10 +1252,17 @@ if there exists an |entry| of |list| that is an [=ordered map=], and where
12521252
</div>
12531253

12541254
<div algorithm>
1255-
To <dfn for="SanitizerConfig">remove</dfn> an |item| from a |list| that is an
1256-
[=ordered map=], [=list/remove=] all |entry| from |list|
1257-
where |item|["name"] [=string/is|equals=] |entry|["name"] and
1258-
|item|["namespace"] [=string/is|equals=] |entry|["namespace"].
1255+
To <dfn for="SanitizerConfig">remove</dfn> an |item| from a
1256+
[=/list=] |list|:
1257+
1258+
1. Set |removed| to false.
1259+
1. [=list/iterate|For each=] |entry| of |list|:
1260+
1. If |item|["name"] [=string/is|equals=] |entry|["name"] and
1261+
|item|["namespace"] [=string/is|equals=] |entry|["namespace"]:
1262+
1. Remove item |entry| from |list|.
1263+
1. Set |removed| to true.
1264+
1. Return |removed|.
1265+
12591266
</div>
12601267

12611268
<div algorithm>

0 commit comments

Comments
 (0)