The \example tags marks an entire file as an example, not a code snippet.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@387825
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
* the lock. When the lock goes out of scope, it will automatically
* be unlocked.
*
- * \example
+ * \code
* int some_function(struct ast_channel *chan)
* {
* SCOPED_LOCK(lock, chan, ast_channel_lock, ast_channel_unlock);
*
* return -1;
* }
+ * \endcode
*
* In the above example, neither return path requires explicit unlocking
* of the channel.