Skip to content

Commit

Permalink
fix: structure name being same as function name
Browse files Browse the repository at this point in the history
  • Loading branch information
megatank58 committed Mar 10, 2022
1 parent 5ffc1e5 commit 51903ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func ParseFunction(line string, FunctionDocs FunctionData) (FunctionData, string
FunctionDocs.Line = Trim(Remove(line, "{"))
if IsFunctionOfStructureLine(line) {
FunctionDocs = ParseFunctionName(FunctionDocs.Line, FunctionDocs)
name = FunctionDocs.Name
name = Remove(Remove(Split(FunctionDocs.Line, " ")[2], "*"), ")")
} else if IsFunctionLine(line) {
FunctionDocs = ParseFunctionName(FunctionDocs.Line, FunctionDocs)
}
Expand Down

0 comments on commit 51903ca

Please sign in to comment.