Skip to content

Commit bb25770

Browse files
committed
fixed return type for documented functions
1 parent 2a3bc04 commit bb25770

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

__tests__/seeds/functionSeeds.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void foo(var arg1, Date arg2);
6565
* @param arg2 arg 2 description
6666
* @return return description
6767
*/
68-
void foo(var arg1, Date arg2);
68+
var foo(var arg1, Date arg2);
6969
`,
7070
`/*!
7171
* @brief function description

src/inputStructure.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const attachFunctionComment = (token, comment) => {
3737
}
3838
});
3939

40-
token.type = comment.return ? comment.return.type || 'void' : 'void';
40+
token.type = comment.return ? comment.return.type || 'var' : 'void';
4141
token.comment = comment;
4242
} else {
4343
token.args.forEach((arg) => {

0 commit comments

Comments
 (0)