Skip to content

Commit 521c913

Browse files
authored
[css-highlight-api]: Remove redundant add method from HighlightRegistry. (#6092)
1 parent 3935b8f commit 521c913

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

css-highlight-api-1/Overview.bs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,13 +226,12 @@ Registering Custom Highlights</h3>
226226
[Exposed=Window]
227227
interface HighlightRegistry {
228228
setlike<Highlight>;
229-
HighlightRegistry add(Highlight value);
230229
};
231230
</xmp>
232231

233232
<div algorithm="to register a custom highlight">
234233
To [=register=] a [=custom highlight=],
235-
invoke the {{HighlightRegistry/add()}} of the [=highlight registry=]
234+
invoke the {{HighlightRegistry/add()}} method of the [=highlight registry=]
236235
with the [=custom highlight=] as the argument.
237236

238237
When invoked,

0 commit comments

Comments
 (0)