Skip to content

Commit

Permalink
CodingStyle: Typos, whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommi Virtanen committed Jul 13, 2011
1 parent 24faa3d commit f29b9bd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CodingStyle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ by section.

* Naming > Constant Names:

Google uses kSomeThing for constants. We prefere SOME_THING.
Google uses kSomeThing for constants. We prefer SOME_THING.

* Naming > Function Names:

Expand All @@ -64,16 +64,16 @@ the code origin isn't reflected by the git history.

if (foo) { // okay

if ( foo ) { // no
if ( foo ) { // no

- Always use newline following if:

if (foo)
bar; // okay
if (foo)
bar; // okay

if (foo) bar; // no, usually harder to parse visually

if (foo) bar; // no, usually hardler to visually parse




The following guidelines have not been followed in the legacy code,
Expand Down

0 comments on commit f29b9bd

Please sign in to comment.