Skip to content

Commit d70ec84

Browse files
authored
Fix README example for highlight function (#35)
1 parent efb877d commit d70ec84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ test(parse('name:David'), persons[0]);
9393
Highlight matching fields and substrings:
9494

9595
```ts
96-
test(highlight('name:john'), persons[0]);
96+
highlight(parse('name:john'), persons[0]);
9797
// [
9898
// {
9999
// path: 'name',
100100
// query: /(John)/,
101101
// }
102102
// ]
103-
test(highlight('height:180'), persons[0]);
103+
highlight(parse('height:180'), persons[0]);
104104
// [
105105
// {
106106
// path: 'height',

0 commit comments

Comments
 (0)