Navigation Menu

Skip to content

Commit

Permalink
doc coding style: add about spaces around '='
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Mar 19, 2012
1 parent 4d5d4b7 commit 912e143
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions doc/source/developer/coding_style.rst
Expand Up @@ -119,6 +119,22 @@ TODO: 読みやすさの他にデバッグのしやすさ(gdbでの追いや
...
#endif // _MRN_DB_PATH_HPP

代入
----

``=`` の前後に1つスペースを入れる。

よい例:

int i = 0;

悪い例(スペースが入っていない);

for (i=0; i<10; ++i) {...}

悪い例(2つスペースが入っている)

int i = 0;

文字列
------
Expand Down

0 comments on commit 912e143

Please sign in to comment.