From 1684e44c47c3adb4ef3a3b1be85fa9dda9783c5d Mon Sep 17 00:00:00 2001 From: Tom Andrade Date: Thu, 19 May 2022 10:30:18 +0200 Subject: [PATCH] fix: typos --- internal/shortie/shortie.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/shortie/shortie.go b/internal/shortie/shortie.go index c94c9ab..257d601 100644 --- a/internal/shortie/shortie.go +++ b/internal/shortie/shortie.go @@ -184,7 +184,7 @@ func internalError(msg string, err error) body { } } -// IndexHandler return a fasthttp.RequestHandler function that genetares the index page +// IndexHandler return a fasthttp.RequestHandler function that generates the index page func IndexHandler(t *template.Template) func(ctx *fasthttp.RequestCtx) { return func(ctx *fasthttp.RequestCtx) { ctx.Response.Header.SetCanonical([]byte("Content-Type"), []byte("text/html")) @@ -196,7 +196,7 @@ func IndexHandler(t *template.Template) func(ctx *fasthttp.RequestCtx) { } } -// Short return a fasthttp.RequestHandler function that genetares the shortener page +// Short return a fasthttp.RequestHandler function that generates the shortener page func Short(t *template.Template) func(ctx *fasthttp.RequestCtx) { return func(ctx *fasthttp.RequestCtx) { ctx.Response.Header.SetCanonical([]byte("Content-Type"), []byte("text/html")) @@ -227,7 +227,7 @@ func Short(t *template.Template) func(ctx *fasthttp.RequestCtx) { } } -// Redir return a fasthttp.RequestHandler function that genetares the shortener redirect page +// Redir return a fasthttp.RequestHandler function that generates the shortener redirect page func Redir(t *template.Template) func(ctx *fasthttp.RequestCtx) { return func(ctx *fasthttp.RequestCtx) { ctx.Response.Header.SetCanonical([]byte("Content-Type"), []byte("text/html"))