Merge pull request #128 from itcbx/patch-1

修改生成文档时,@Success 第三个参数解析错误的问题
This commit is contained in:
astaxie 2016-03-03 10:00:56 +08:00
commit 76eb064e69
1 changed files with 7 additions and 4 deletions

View File

@ -395,10 +395,13 @@ func parserComments(comments *ast.CommentGroup, funcName, controllerName, pkgpat
tmp = make([]rune, 0)
j += 1
start = false
continue
} else {
st[j] = strings.TrimSpace(ss[i+1:])
break
if j == 1 {
continue
} else {
st[j] = strings.TrimSpace(ss[i+1:])
break
}
}
} else {
start = true