Skip to content

Commit 6d6000c

Browse files
committed
fix: correct quote typos in status examples
- Remove extra trailing quote in teapot example - Remove unnecessary escaped apostrophe in double-quoted string
1 parent 5e5da8b commit 6d6000c

File tree

2 files changed

+2
-2
lines changed
  • docs/tutorial

2 files changed

+2
-2
lines changed

docs/tutorial/getting-started/status-and-headers/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ You can also return a status code by returning your response using a `status` fu
4949
import { Elysia } from 'elysia'
5050

5151
new Elysia()
52-
.get('/', ({ status }) => status(418, "I'm a teapot'"))
52+
.get('/', ({ status }) => status(418, "I'm a teapot"))
5353
.listen(3000)
5454
```
5555

docs/tutorial/patterns/error-handling/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ new Elysia()
4545
if(code === "NOT_FOUND")
4646
return 'uhe~ are you lost?'
4747

48-
return status(418, "My bad! But I\'m cute so you'll forgive me, right?")
48+
return status(418, "My bad! But I'm cute so you'll forgive me, right?")
4949
})
5050
.get('/', () => 'ok')
5151
.listen(3000)

0 commit comments

Comments
 (0)