Skip to content

Commit ad7cf8d

Browse files
Dermot SmythDermot Smyth
authored andcommitted
refactored example
1 parent 2b645e4 commit ad7cf8d

File tree

1 file changed

+3
-6
lines changed
  • examples/jsdoc-project/src/main/ml-modules/lib

1 file changed

+3
-6
lines changed

examples/jsdoc-project/src/main/ml-modules/lib/sample.sjs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
2-
function internalHello(str) {
3-
return `Hello ${str}`
4-
}
5-
61
/**
72
* Sample Module
83
*
@@ -19,5 +14,7 @@ module.exports = {
1914
*
2015
* @param {string} str the string to say hello to
2116
*/
22-
hello: internalHello
17+
hello: function(str) {
18+
return `Hello ${str}`
19+
}
2320
}

0 commit comments

Comments
 (0)