Skip to content

Commit 478d14d

Browse files
committed
Fix typos in README.md examples
1 parent 17f03fa commit 478d14d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ import "choices.js/public/assets/styles/choices.css";
169169
resetScrollPosition: true,
170170
shouldSort: true,
171171
shouldSortItems: false,
172-
sorter: () => {...},
172+
sorter: (a, b) => sortByAlpha,
173173
shadowRoot: null,
174174
placeholder: true,
175175
placeholderValue: null,
@@ -609,7 +609,7 @@ const example = new Choices(element, {
609609
sorter: function(a, b) {
610610
return b.label.length - a.label.length;
611611
},
612-
};
612+
});
613613
```
614614

615615
### placeholder
@@ -774,7 +774,7 @@ Return type must be safe to insert into HTML (ie use the 1st argument which is s
774774
```js
775775
const example = new Choices(element, {
776776
valueComparer: (a, b) => value.trim() === b.trim(),
777-
};
777+
});
778778
```
779779

780780
### labelId

0 commit comments

Comments
 (0)