From c524145d52a18710ded5532cf08dfba55c245c47 Mon Sep 17 00:00:00 2001 From: kongmoumou <35442047+kongmoumou@users.noreply.github.com> Date: Fri, 22 Mar 2024 10:21:40 +0800 Subject: [PATCH] fix: typo --- docs/1.guide/2.event-handler.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(