Skip to content

Commit

Permalink
Fix typo in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nvie committed Jul 17, 2024
1 parent 8faa3f8 commit 27354a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@
'params': [('decoder', 'Decoder<T>')],
'return_type': 'Decoder<Set<T>>',
'example': """
const decoder = set(string);
const decoder = setFromArray(string);
// 👍
decoder.verify(['abc', 'pqr']) // new Set(['abc', 'pqr'])
Expand Down
4 changes: 2 additions & 2 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@ Similar to [`array()`](/api.html#array), but returns the result as an [ES6
Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set).

```ts
const decoder = set(string);
const decoder = setFromArray(string);

// 👍
decoder.verify(['abc', 'pqr']) // new Set(['abc', 'pqr'])
Expand Down Expand Up @@ -1618,5 +1618,5 @@ const treeDecoder: Decoder<Tree> = object({
});
```

<!--[[[end]]] (checksum: 4416418b71ace6cf7fb2331ace2dae00)-->
<!--[[[end]]] (checksum: b2930e07c0699a79871559f3853b8d7d)-->
<!-- prettier-ignore-end -->

0 comments on commit 27354a8

Please sign in to comment.