Fix typo in doc example

pull/8/head
Fenny 2020-02-03 13:52:36 +01:00
parent 26d3283303
commit ef1b7d7448
1 changed files with 4 additions and 4 deletions

View File

@ -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"]
})
```