diff --git a/_examples/i18n/main.go b/_examples/i18n/main.go index fbc1fd8c..438e5acb 100644 --- a/_examples/i18n/main.go +++ b/_examples/i18n/main.go @@ -10,7 +10,10 @@ func newApp() *iris.Application { // Configure i18n. // First parameter: Glob filpath patern, // Second variadic parameter: Optional language tags, the first one is the default/fallback one. - app.I18n.Load("./locales/*/*.ini", "en-US", "el-GR", "zh-CN") + err := app.I18n.Load("./locales/*/*.ini", "en-US", "el-GR", "zh-CN") + if err != nil { + panic(err) + } // app.I18n.LoadAssets for go-bindata. // Default values: diff --git a/middleware/rate/rate.go b/middleware/rate/rate.go index 60a1a975..d482a6ba 100644 --- a/middleware/rate/rate.go +++ b/middleware/rate/rate.go @@ -16,7 +16,7 @@ func init() { context.SetHandlerName("iris/middleware/rate.(*Limiter).serveHTTP-fm", "iris.ratelimit") } -// Option delcares a function which can be passed on `Limit` package-level +// Option declares a function which can be passed on `Limit` package-level // to modify its internal fields. Available Options are: // * ExceedHandler // * ClientData