From b2447605b071779a27bfead3d4df408507dc350b Mon Sep 17 00:00:00 2001 From: Hemanth Krishna Date: Sat, 18 Jul 2020 19:52:09 +0530 Subject: [PATCH] :pencil2: Fix typo for app and ctx warnings --- app.go | 2 +- ctx.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.go b/app.go index 49006ec0..9abc4386 100644 --- a/app.go +++ b/app.go @@ -594,7 +594,7 @@ func (app *App) init() *App { if app.Settings != nil { // Templates is replaced by Views with layout support if app.Settings.Templates != nil { - fmt.Println("`Templates` are deprecated since v1.12.x, please us `Views` instead") + fmt.Println("`Templates` are deprecated since v1.12.x, please use `Views` instead") } // Only load templates if an view engine is specified if app.Settings.Views != nil { diff --git a/ctx.go b/ctx.go index a4e9749a..7c15a61d 100644 --- a/ctx.go +++ b/ctx.go @@ -261,7 +261,7 @@ func (ctx *Ctx) BodyParser(out interface{}) error { // query params if ctx.Fasthttp.QueryArgs().Len() > 0 { schemaDecoder.SetAliasTag("query") - fmt.Println("Parsing query strings using `BodyParser` is deprecated since v1.12.7, please us `ctx.QueryParser` instead") + fmt.Println("Parsing query strings using `BodyParser` is deprecated since v1.12.7, please use `ctx.QueryParser` instead") data := make(map[string][]string) ctx.Fasthttp.QueryArgs().VisitAll(func(key []byte, val []byte) { data[getString(key)] = append(data[getString(key)], getString(val))