I was wondering if someone could explain what/if there is any difference between the following two comment syntax in Xcode.
/**
* comments
*/
/*!
* comments
*/
It seems like both allow Xcode to display your comments as documentation but I'm not sure if there is a difference between the two.
They are functionally equivalent. /*! is a HeaderDoc style opener and /** is a JavaDoc style opener commonly used by doxygen. Xcode 5 supports both HeaderDoc and doxygen/JavaDoc formats.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With