Created
January 9, 2014 22:35
-
-
Save bgerstle/8343382 to your computer and use it in GitHub Desktop.
Example of various appledoc commenting styles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//------------------------------ | |
// 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