diff --git a/docs/api/http.md b/docs/api/http.md index f3e5b48e55..201e911cfe 100644 --- a/docs/api/http.md +++ b/docs/api/http.md @@ -536,7 +536,7 @@ You can also access the `Server` object from the `fetch` handler. It's the secon const server = Bun.serve({ fetch(req, server) { const ip = server.requestIP(req); - return new Response(`Your IP is ${ip}`); + return new Response(`Your IP is ${ip.address}`); }, }); ```