[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] doc coding style: add about spaces around '='

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:48:50 JST 2012


Kouhei Sutou	2012-03-19 18:34:32 +0900 (Mon, 19 Mar 2012)

  New Revision: 912e143cd0ff11f1f9761cc4258f9c1dbb1d594f
  https://github.com/mroonga/mroonga/commit/912e143cd0ff11f1f9761cc4258f9c1dbb1d594f

  Log:
    doc coding style: add about spaces around '='

  Modified files:
    doc/source/developer/coding_style.rst

  Modified: doc/source/developer/coding_style.rst (+16 -0)
===================================================================
--- doc/source/developer/coding_style.rst    2012-03-19 18:23:35 +0900 (ac2d049)
+++ doc/source/developer/coding_style.rst    2012-03-19 18:34:32 +0900 (9a79145)
@@ -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;
 
 文字列
 ------
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index