Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f70fc02 commit a583cd5Copy full SHA for a583cd5
coderd/coderdtest/swaggerparser.go
@@ -89,9 +89,9 @@ func parseSwaggerComment(commentGroup *ast.CommentGroup) SwaggerComment {
89
failures: []response{},
90
}
91
for _, line := range commentGroup.List {
92
- // @<annotationName> [args...]
+ // "// @<annotationName> [args...]" -> []string{"//", "@<annotationName>", "args..."}
93
splitN := strings.SplitN(strings.TrimSpace(line.Text), " ", 3)
94
- if len(splitN) < 2 {
+ if len(splitN) < 3 {
95
continue // comment prefix without any content
96
97
0 commit comments