Skip to content

Commit

Permalink
Merge pull request #886 from lolmaus/patch-1
Browse files Browse the repository at this point in the history
Docs: add `ensure` import to Resources code snippet
  • Loading branch information
cowboyd authored Jan 19, 2024
2 parents e990bc0 + 0504cb9 commit 8c5c21a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/docs/resources.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ enact cleanup within resources as well. While a matter of preference, the
`useSocket()` resource above could also have been written as:
``` javascript
import { once, resource } from 'effection';
import { ensure, once, resource } from 'effection';

export function useSocket(port, host) {
return resource(function* (provide) {
Expand Down

0 comments on commit 8c5c21a

Please sign in to comment.