Navigation Menu

Skip to content

Commit

Permalink
doc coding-style: add reason for const
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Mar 15, 2012
1 parent 2548a74 commit c3425f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/source/developer/coding_style.rst
Expand Up @@ -358,7 +358,7 @@ voidを省略
入力用引数にはconstを付ける
^^^^^^^^^^^^^^^^^^^^^^^^^^

入力のみに用いる引数には ``const`` を付ける。
入力のみに用いる引数には ``const`` を付ける。これは、入力のみに用いる引数である事を明示するためと、間違って引数を変更してしまわないためである。

よい例:

Expand Down

0 comments on commit c3425f3

Please sign in to comment.