fix: typos

This commit is contained in:
Tom Andrade 2022-05-19 10:30:18 +02:00
parent 37d4536e3f
commit 1684e44c47
Signed by: wolvie
GPG Key ID: 31AAB07872E82669

View File

@ -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"))