Commit 8f0aa1f8 authored by Eric Niebler's avatar Eric Niebler Committed by Facebook Github Bot

Add proper Doxygen comment markings around exception_wrapper example.

Summary: The Doxegen-generated documentation for exception_wrapper is unreadable. The code needs to be denoted with \code...\endcode tags; otherwise, it is formatted like a paragraph and newlines are ignored.

Reviewed By: igorsugak

Differential Revision: D4367636

fbshipit-source-id: 680bedfb152300d8a6287bf441dd9b81b9b94c80
parent f2987ecd
...@@ -61,8 +61,9 @@ namespace folly { ...@@ -61,8 +61,9 @@ namespace folly {
* can test or extract a pointer to a specific exception type with very little * can test or extract a pointer to a specific exception type with very little
* overhead. * overhead.
* *
* Example usage: * \par Example usage:
* * \par
* \code
* exception_wrapper globalExceptionWrapper; * exception_wrapper globalExceptionWrapper;
* *
* // Thread1 * // Thread1
...@@ -100,6 +101,7 @@ namespace folly { ...@@ -100,6 +101,7 @@ namespace folly {
* }) || * }) ||
* LOG(FATAL) << "Unrecognized exception"; * LOG(FATAL) << "Unrecognized exception";
* } * }
* \endcode
* *
*/ */
class exception_wrapper { class exception_wrapper {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment