From d35c870b9a89e5b11f1f91672021e15bcf232445 Mon Sep 17 00:00:00 2001 From: Sheikh Date: Tue, 22 Oct 2024 00:05:20 -0300 Subject: [PATCH] response: fix example for Context#Inline `Context#Inline` takes two args: `file` and `name`, but in the example code, only the first argument was given. Added second argument. --- website/docs/guide/response.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/guide/response.md b/website/docs/guide/response.md index 67a297ee..289a549f 100644 --- a/website/docs/guide/response.md +++ b/website/docs/guide/response.md @@ -263,7 +263,7 @@ used to send file as `Content-Disposition: inline` with provided name. ```go func(c echo.Context) error { - return c.Inline("") + return c.Inline("", "") } ```