This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
dev:dg_code_style_guide [2017/09/13 08:49] – [Naming] deva | dev:dg_code_style_guide [2017/09/13 08:58] – [Curly Braces] deva | ||
---|---|---|---|
Line 15: | Line 15: | ||
=====Curly Braces===== | =====Curly Braces===== | ||
Use [[https:// | Use [[https:// | ||
- | This basically boils down to 'curly braces always on a new line' | + | This basically boils down to 'curly braces always on a new line': |
<code c++> | <code c++> | ||
namespace Foo | namespace Foo | ||
Line 263: | Line 263: | ||
//! This is a method. | //! This is a method. | ||
//! \param foo The foo argument is an integer. | //! \param foo The foo argument is an integer. | ||
- | //! \param bar The bar argument is a boolan. | + | //! \param bar The bar argument is a boolean. |
//! \return This method returns a float. | //! \return This method returns a float. | ||
float method(int foo, bool bar); | float method(int foo, bool bar); |