Skip to content

Commit

Permalink
Update CONTRIBUTING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Explosion-Scratch authored Apr 14, 2021
1 parent e1f1d05 commit da8d896
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Follow this template:

/**
* Description
* @function
* @param String str A string parameter
* @returns {String} What it returns
* @example
Expand All @@ -28,11 +29,8 @@ export let functionName = (str = req("string", "input")) => {
};

// For recursive functions:
export let functionName = (str = req("string", "input")) => {
function _recurse(str) {
//Do whatever
_recurse(str);
}
export let functionName = function _recurse(str = req("string", "input")) {
//Do whatever
return _recurse(str);
};
```
Expand Down

0 comments on commit da8d896

Please sign in to comment.