From f23e21f74796650638ce8845ceb3b86be10ffa85 Mon Sep 17 00:00:00 2001 From: hiveminded Date: Thu, 7 Sep 2017 16:24:30 +0300 Subject: [PATCH] fix misspells :ab:, previous commit: update to version 8.4.1 https://github.com/kataras/iris/commit/8a9a498316cc2e8816c7c99339be46317e41e6e8 [formerly 9e5f0a08049b83605aa847b8f51fb856427354a6] Former-commit-id: d0f8c8018c14acc3b425b56c466f78a7b8e6fd84 --- .github/CONTRIBUTING.md | 2 +- HISTORY.md | 2 +- core/router/macro/interpreter/ast/ast.go | 4 ++-- core/router/macro/macro.go | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 10d3ea1a..9cca38e7 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -9,7 +9,7 @@ First of all read our [Code of Conduct](https://github.com/kataras/iris/tree/mas * Write version of your local Go programming language. * Describe your problem, what did you expect to see and what you see instead. * If it's a feature request, describe your idea as better as you can - * optionally, navigate to the [chat](https://kataras.rocket.chat/channel/iris) to push other members to participate and share their thoughts about your briliant idea. + * optionally, navigate to the [chat](https://kataras.rocket.chat/channel/iris) to push other members to participate and share their thoughts about your brilliant idea. 2. Fork the [repository](https://github.com/kataras/iris). 3. Make your changes. 4. Compare & Push the PR from [here](https://github.com/kataras/iris/compare). diff --git a/HISTORY.md b/HISTORY.md index b9005604..7cdbe1ba 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -37,7 +37,7 @@ Add `context.Params().GetBool(paramName string) (bool, error)` respectfully. ```go app := iris.New() -app.Get("/mypath/{has:boolean}", func(ctx iris.Context){ // <-- +app.Get("/mypath/{has:boolean}", func(ctx iris.Context) { // <-- // boolean first return value // error as second return value // diff --git a/core/router/macro/interpreter/ast/ast.go b/core/router/macro/interpreter/ast/ast.go index 39f0be76..f02fa66e 100644 --- a/core/router/macro/interpreter/ast/ast.go +++ b/core/router/macro/interpreter/ast/ast.go @@ -18,11 +18,11 @@ const ( // Declaration: /mypath/{myparam:string} or /mypath{myparam} ParamTypeString // ParamTypeInt is the integer, a number type. - // Allows only possitive numbers (0-9) + // Allows only positive numbers (0-9) // Declaration: /mypath/{myparam:int} ParamTypeInt // ParamTypeLong is the integer, a number type. - // Allows only possitive numbers (0-9) + // Allows only positive numbers (0-9) // Declaration: /mypath/{myparam:long} ParamTypeLong // ParamTypeBoolean is the bool type. diff --git a/core/router/macro/macro.go b/core/router/macro/macro.go index 1cabc7b8..e4141c07 100644 --- a/core/router/macro/macro.go +++ b/core/router/macro/macro.go @@ -215,11 +215,11 @@ type Map struct { // anything String *Macro // uint type - // only possitive numbers (+0-9) + // only positive numbers (+0-9) // it could be uint/uint32 but we keep int for simplicity Int *Macro // long an int64 type - // only possitive numbers (+0-9) + // only positive numbers (+0-9) // it could be uint64 but we keep int64 for simplicity Long *Macro // boolean as bool type