diff --git a/CODINGSTYLE.md b/CODINGSTYLE.md index 616883fd2f58c9e5a3874f5d0540b457c214eb44..32866d4e826431927a84585a9033244336135765 100644 --- a/CODINGSTYLE.md +++ b/CODINGSTYLE.md @@ -49,6 +49,12 @@ template and its paramters. std::vector<object*> ``` +2.4 Bind '*' or '&' to the type, not the variable +... + int* a; + int& b; +... + ## 3. Braces 3.1 Always use curly braces for if statement, even if it is a one line if.