Skip to content

Instantly share code, notes, and snippets.

@gerzhan
Forked from Layzie/jsdoc.coffee
Last active August 29, 2015 14:04
Show Gist options
  • Save gerzhan/baf9a3f2a07dfbcde781 to your computer and use it in GitHub Desktop.
Save gerzhan/baf9a3f2a07dfbcde781 to your computer and use it in GitHub Desktop.
### define function variable before block to avoid code being appended to closing part of JSDoc comment ###
cube = ''
###*
# Funtion to calculate cube of input
# @param {number} Number to operate on
# @return {number} Cube of input
###
cube = (x) -> x*x*x
/* define function variable before block to avoid code being appended to closing part of JSDoc comment */
var cube;
cube = '';
/**
* Funtion to calculate cube of input
* @param {number} Number to operate on
* @return {number} Cube of input
*/
cube = function(x) {
return x * x * x;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment