Skip to content

Commit e8e5a08

Browse files
Griffon26waylan
authored andcommitted
Clarify in docs that a high value corresponds to high extension priority (#756)
This fixes #755
1 parent d41adf5 commit e8e5a08

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/extensions/api.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,8 +564,9 @@ registry: `register` and `deregister`. Use `register` to add items and
564564
`deregister` to remove items. See each method for specifics.
565565

566566
When registering an item, a "name" and a "priority" must be provided. All
567-
items are automatically sorted by "priority" from highest to lowest. The
568-
"name" is used to remove (`deregister`) and get items.
567+
items are automatically sorted by the value of the "priority" parameter such
568+
that the item with the highest value will be processed first. The "name" is
569+
used to remove (`deregister`) and get items.
569570

570571
A `Registry` instance is like a list (which maintains order) when reading
571572
data. You may iterate over the items, get an item and get a count (length)

0 commit comments

Comments
 (0)