Skip to content

Commit

Permalink
response: fix example for Context#Inline
Browse files Browse the repository at this point in the history
`Context#Inline` takes two args: `file` and `name`, but in the example code, only the first argument was given. Added second argument.
  • Loading branch information
cybardev authored Oct 22, 2024
1 parent 746da2d commit d35c870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/guide/response.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ used to send file as `Content-Disposition: inline` with provided name.

```go
func(c echo.Context) error {
return c.Inline("<PATH_TO_YOUR_FILE>")
return c.Inline("<PATH_TO_YOUR_FILE>", "<FILE_NAME>")
}
```

Expand Down

0 comments on commit d35c870

Please sign in to comment.