Navigation Menu

Skip to content

Commit

Permalink
doc coding-style: add a reason about boolean literal
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Mar 15, 2012
1 parent 683f09f commit 57f367a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/source/developer/coding_style.rst
Expand Up @@ -424,6 +424,8 @@ bool型を用いる
真偽値のリテラルには ``true`` または ``false`` を用いる
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

真偽値の値として ``true`` と ``false`` はより完結で説明的だからである。

よい例:

bool is_searching = true;
Expand Down

0 comments on commit 57f367a

Please sign in to comment.