mirror of
https://github.com/beego/bee.git
synced 2024-11-22 15:10:54 +00:00
Merge pull request #128 from itcbx/patch-1
修改生成文档时,@Success 第三个参数解析错误的问题
This commit is contained in:
commit
76eb064e69
11
g_docs.go
11
g_docs.go
@ -395,10 +395,13 @@ func parserComments(comments *ast.CommentGroup, funcName, controllerName, pkgpat
|
|||||||
tmp = make([]rune, 0)
|
tmp = make([]rune, 0)
|
||||||
j += 1
|
j += 1
|
||||||
start = false
|
start = false
|
||||||
continue
|
if j == 1 {
|
||||||
} else {
|
continue
|
||||||
st[j] = strings.TrimSpace(ss[i+1:])
|
} else {
|
||||||
break
|
st[j] = strings.TrimSpace(ss[i+1:])
|
||||||
|
break
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
start = true
|
start = true
|
||||||
|
Loading…
Reference in New Issue
Block a user