[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] doc coding-style: add reason for const

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:39:01 JST 2012


Kouhei Sutou	2012-03-15 17:43:09 +0900 (Thu, 15 Mar 2012)

  New Revision: c3425f3c5b15b18d1716de2fcc865bca2505b20e
  https://github.com/mroonga/mroonga/commit/c3425f3c5b15b18d1716de2fcc865bca2505b20e

  Log:
    doc coding-style: add reason for const

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

  Modified: doc/source/developer/coding_style.rst (+1 -1)
===================================================================
--- doc/source/developer/coding_style.rst    2012-03-15 17:42:21 +0900 (50a088c)
+++ doc/source/developer/coding_style.rst    2012-03-15 17:43:09 +0900 (56c162d)
@@ -358,7 +358,7 @@ voidを省略
 入力用引数にはconstを付ける
 ^^^^^^^^^^^^^^^^^^^^^^^^^^
 
-入力のみに用いる引数には ``const`` を付ける。
+入力のみに用いる引数には ``const`` を付ける。これは、入力のみに用いる引数である事を明示するためと、間違って引数を変更してしまわないためである。
 
 よい例:
 
-------------- next part --------------
HTML����������������������������...
다운로드 



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