Skip to content

Commit

Permalink
Merge pull request zh-google-styleguide#88 from RyanZhiNie/patch-1
Browse files Browse the repository at this point in the history
Fix two mistakes
  • Loading branch information
yangyubo authored Nov 27, 2018
2 parents 7e48bbb + 637091c commit 2cdfbf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion google-python-styleguide/python_language_rules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Lint
结论:
确保对你的代码运行pylint.抑制不准确的警告,以便能够将其他警告暴露出来。

你可以通过设置一个行注释来抑制告警. 例如:
你可以通过设置一个行注释来抑制警告. 例如:

.. code-block:: python
Expand Down
2 changes: 1 addition & 1 deletion google-python-styleguide/python_style_rules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ Shebang
# in the array and the array size and then do binary search to
# get the exact number.
if i & (i-1) == 0: # true iff i is a power of 2
if i & (i-1) == 0: # True if i is 0 or a power of 2.
为了提高可读性, 注释应该至少离开代码2个空格.

Expand Down

0 comments on commit 2cdfbf3

Please sign in to comment.