diff --git a/docs/1.guide/2.event-handler.md b/docs/1.guide/2.event-handler.md index 4beea2e8..28650f37 100644 --- a/docs/1.guide/2.event-handler.md +++ b/docs/1.guide/2.event-handler.md @@ -119,7 +119,7 @@ This will end the request with `400 - Bad Request` status code and the following ### Internal errors -If during calling an event handler an error with `new Error()` will be thrown (without `create Error`), h3 will automatically catch as a [`500 - Internal Server Error`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) status response considering it an unhandled error. +If during calling an event handler an error with `new Error()` will be thrown (without `createError`), h3 will automatically catch as a [`500 - Internal Server Error`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) status response considering it an unhandled error. ```js app.use(