Commit c5118e95 authored by astaxie's avatar astaxie Committed by GitHub

Merge pull request #2889 from lidaobing/fix_typo

fix typo
parents 3162da13 9b575669
...@@ -7,7 +7,7 @@ import ( ...@@ -7,7 +7,7 @@ import (
// MethodParamOption defines a func which apply options on a MethodParam // MethodParamOption defines a func which apply options on a MethodParam
type MethodParamOption func(*MethodParam) type MethodParamOption func(*MethodParam)
// IsRequired indicates that this param is required and can not be ommited from the http request // IsRequired indicates that this param is required and can not be omitted from the http request
var IsRequired MethodParamOption = func(p *MethodParam) { var IsRequired MethodParamOption = func(p *MethodParam) {
p.required = true p.required = true
} }
......
...@@ -75,7 +75,7 @@ func checkParser(def testDefinition, t *testing.T, methodParam ...MethodParam) { ...@@ -75,7 +75,7 @@ func checkParser(def testDefinition, t *testing.T, methodParam ...MethodParam) {
} }
convResult, err := safeConvert(reflect.ValueOf(result), toType) convResult, err := safeConvert(reflect.ValueOf(result), toType)
if err != nil { if err != nil {
t.Errorf("Convertion error for %v. from value: %v, toType: %v, error: %v", def.strValue, result, toType, err) t.Errorf("Conversion error for %v. from value: %v, toType: %v, error: %v", def.strValue, result, toType, err)
return return
} }
if !reflect.DeepEqual(convResult.Interface(), def.expectedValue) { if !reflect.DeepEqual(convResult.Interface(), def.expectedValue) {
......
...@@ -227,7 +227,7 @@ func parseComment(lines []*ast.Comment) (pc *parsedComment, err error) { ...@@ -227,7 +227,7 @@ func parseComment(lines []*ast.Comment) (pc *parsedComment, err error) {
} }
// direct copy from bee\g_docs.go // direct copy from bee\g_docs.go
// analisys params return []string // analysis params return []string
// @Param query form string true "The email for login" // @Param query form string true "The email for login"
// [query form string true "The email for login"] // [query form string true "The email for login"]
func getparams(str string) []string { func getparams(str string) []string {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment