Skip to content

Instantly share code, notes, and snippets.

@bgerstle
Created January 9, 2014 22:35
Show Gist options
  • Save bgerstle/8343382 to your computer and use it in GitHub Desktop.
Save bgerstle/8343382 to your computer and use it in GitHub Desktop.
Example of various appledoc commenting styles
//------------------------------
// The method we're documenting:
//------------------------------
- (BOOL)maybeDoWork:(dispatch_block_t)something;
//-------------------------------------------------------------------------------------------
/**
* @brief You just called me, and this is crazy. But here's a `BOOL`, I did work maybe?
* @param something Work to be done.
* @return `YES` if the work was done, `NO` otherwise.
*/
//-------------------------------------------------------------------------------------------
/**
You just called me, and this is crazy. But here's a `BOOL`, I did work maybe?
@param something Work to be done.
@return `YES` if the work was done, `NO` otherwise.
*/
//-------------------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment