diff options
author | Denton Liu <liu.denton+github@gmail.com> | 2016-05-25 00:24:52 +0800 |
---|---|---|
committer | Denton Liu <liu.denton+github@gmail.com> | 2016-05-30 21:44:33 +0800 |
commit | 09a7fb7f6ba4b24353661844ce7086335c9235d2 (patch) | |
tree | 728431c139b3cc0b1663b54bb9667073ba3c599d /docs/style-guide.rst | |
parent | b3669e639428beddd9405d3359adcf2d02e7b789 (diff) | |
download | dexon-solidity-09a7fb7f6ba4b24353661844ce7086335c9235d2.tar dexon-solidity-09a7fb7f6ba4b24353661844ce7086335c9235d2.tar.gz dexon-solidity-09a7fb7f6ba4b24353661844ce7086335c9235d2.tar.bz2 dexon-solidity-09a7fb7f6ba4b24353661844ce7086335c9235d2.tar.lz dexon-solidity-09a7fb7f6ba4b24353661844ce7086335c9235d2.tar.xz dexon-solidity-09a7fb7f6ba4b24353661844ce7086335c9235d2.tar.zst dexon-solidity-09a7fb7f6ba4b24353661844ce7086335c9235d2.zip |
Modified style-guide.rst
Corrected inline code syntax
Diffstat (limited to 'docs/style-guide.rst')
-rw-r--r-- | docs/style-guide.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/style-guide.rst b/docs/style-guide.rst index 332b1ba6..07c3e926 100644 --- a/docs/style-guide.rst +++ b/docs/style-guide.rst @@ -221,11 +221,11 @@ No:: } } -The same recommendations apply to the control structures `if`, `else`, `while`, -and `for`. +The same recommendations apply to the control structures :code:`if`, :code:`else`, :code:`while`, +and :code:`for`. Additionally there should be a single space between the control structures -`if`, `while`, and `for` and the parenthetic block representing the +:code:`if`, :code:`while`, and :code:`for` and the parenthetic block representing the conditional, as well as a single space between the conditional parenthetic block and the opening brace. @@ -268,7 +268,7 @@ No:: value: 42 })); -For `if` blocks which have an `else` or `else if` clause, the `else` should be +For :code:`if` blocks which have an :code:`else` or :code:`else if` clause, the :code:`else` should be placed on it's own line following the previous closing parenthesis. The parenthesis for the else block should follow the same rules as the other conditional control structures. |