fix example comment on routing/dynamic-path/main.go#L101

Former-commit-id: affb9b646e83ab9087d4c84aac8c12e11468257b
This commit is contained in:
Gerasimos (Makis) Maropoulos 2018-01-30 21:16:54 +02:00
parent 999fefd649
commit e38ea65dc7

View File

@ -98,7 +98,7 @@ func main() {
//
// {param:string equal(iris)} , "iris" will be the argument here:
// app.Macros().String.RegisterFunc("equal", func(argument string) func(paramValue string) bool {
// return func(paramValue string){ return argument == paramValue }
// return func(paramValue string) bool { return argument == paramValue }
// })
// you can use the "string" type which is valid for a single path parameter that can be anything.