Skip to content

Commit 3dddd4d

Browse files
authored
docs: update README imports (#470)
Update examples to reflect `serve` as the default export of `micro`
1 parent 75360e6 commit 3dddd4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/micro/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ You can use Micro programmatically by requiring Micro directly:
215215

216216
```js
217217
const http = require('http');
218-
const { serve } = require('micro');
218+
const serve = require('micro');
219219
const sleep = require('then-sleep');
220220

221221
const server = new http.Server(

0 commit comments

Comments
 (0)