diff --git a/docs/context.md b/docs/context.md index ce274dfb..f81d0174 100644 --- a/docs/context.md +++ b/docs/context.md @@ -465,11 +465,11 @@ Contains the remote IP address of the request. ```go // Function signature -c.Ip() string +c.IP() string // Example app.Get("/", func(c *fiber.Ctx) { - c.Ip() + c.IP() // => "127.0.0.1" }) ``` @@ -480,12 +480,12 @@ contains an array of IP addresses specified in the X-Forwarded-For request heade ```go // Function signature -c.Ips() []string +c.IPs() []string // Example // X-Forwarded-For: proxy1, 127.0.0.1", proxy3 app.Get("/", func(c *fiber.Ctx) { - c.Ips() + c.IPs() // => ["proxy1", "127.0.0.1", "proxy3"] }) ```