summaryrefslogtreecommitdiff
path: root/CodingStyle
diff options
context:
space:
mode:
authorTommi Virtanen <tommi.virtanen@dreamhost.com>2011-07-13 11:25:22 -0700
committerTommi Virtanen <tommi.virtanen@dreamhost.com>2011-07-13 11:25:22 -0700
commitf29b9bd7dee079553675219a592a3532cf42401e (patch)
treec21c12a507afbf90ffcbf10a8f9b7f5bdfc42924 /CodingStyle
parent24faa3d19869a00a9470f7e5e63766d8d20d6fed (diff)
downloadceph-f29b9bd7dee079553675219a592a3532cf42401e.tar.gz
CodingStyle: Typos, whitespace.
Diffstat (limited to 'CodingStyle')
-rw-r--r--CodingStyle12
1 files changed, 6 insertions, 6 deletions
diff --git a/CodingStyle b/CodingStyle
index 47506efc91f..da529c64b00 100644
--- a/CodingStyle
+++ b/CodingStyle
@@ -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:
@@ -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,