Skip to content

Commit

Permalink
[Docs] Fixed syntax errors of rst in ERC checker examples
Browse files Browse the repository at this point in the history
  • Loading branch information
hydai committed Jul 13, 2018
1 parent 68e1126 commit fd4eaed
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 19 deletions.
10 changes: 5 additions & 5 deletions docs/docs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Rule Engine
ERC Contract Standard Checker
-----------------------------

- `ERC20 Checker <erc-contract-standard-checker/erc20-checker>`
- `ERC223 Checker <erc-contract-standard-checker/erc223-checker>`
- `ERC721 Checker <erc-contract-standard-checker/erc721-checker>`
- `ERC827 Checker <erc-contract-standard-checker/erc827-checker>`
- `ERC884 Checker <erc-contract-standard-checker/erc884-checker>`
- :ref:`ERC20 Checker <erc20-contract-standard-checker>`
- :ref:`ERC223 Checker <erc223-contract-standard-checker>`
- :ref:`ERC721 Checker <erc721-contract-standard-checker>`
- :ref:`ERC827 Checker <erc827-contract-standard-checker>`
- :ref:`ERC884 Checker <erc884-contract-standard-checker>`
7 changes: 5 additions & 2 deletions docs/erc-contract-standard-checker/erc20-checker.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _erc20-contract-standard-checker:

ERC20 Contract Standard Checker
===============================

Expand All @@ -14,7 +16,7 @@ Examples

- ERC20 Interface (erc20_interface.sol)

.. code:: solidity
.. code:: ts
pragma solidity ^0.4.23;
Expand Down Expand Up @@ -45,9 +47,10 @@ Examples
- ERC20 Interface with wrong mutability (wrong_mutability.sol)
.. code:: solidity
.. code:: ts
pragma solidity ^0.4.23;
contract ERC20Interface {
function totalSupply() public pure returns (uint); // mutability should be view, not pure
function balanceOf(address tokenOwner) public view returns (uint balance);
Expand Down
8 changes: 5 additions & 3 deletions docs/erc-contract-standard-checker/erc223-checker.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.. _erc223-contract-standard-checker:

ERC223 Contract Standard Checker
===============================
================================

Enable contract standard checker with specific ERC
--------------------------------------------------
Expand All @@ -14,7 +16,7 @@ Examples

- ERC223 Interface (erc223_interface.sol)

.. code:: solidity
.. code:: ts
pragma solidity ^0.4.23;
Expand All @@ -41,7 +43,7 @@ Examples
- ERC223 Token example (erc223_token.sol)
.. code:: solidity
.. code:: ts
pragma solidity ^0.4.11;
Expand Down
8 changes: 5 additions & 3 deletions docs/erc-contract-standard-checker/erc721-checker.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.. _erc721-contract-standard-checker:

ERC721 Contract Standard Checker
===============================
================================

Enable contract standard checker with specific ERC
--------------------------------------------------
Expand All @@ -14,7 +16,7 @@ Examples

- ERC721 Interface (erc721_interface.sol)

.. code:: solidity
.. code:: ts
pragma solidity ^0.4.23;
Expand Down Expand Up @@ -46,7 +48,7 @@ Examples
- ERC721 Interface with wrong modification level (wrong_modification_level.sol)

.. code:: solidity
.. code:: ts
pragma solidity ^0.4.23;
Expand Down
8 changes: 5 additions & 3 deletions docs/erc-contract-standard-checker/erc827-checker.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.. _erc827-contract-standard-checker:

ERC827 Contract Standard Checker
===============================
================================

Enable contract standard checker with specific ERC
--------------------------------------------------
Expand All @@ -14,7 +16,7 @@ Examples

- ERC827 Interface (erc827_standard_no_inheritance.sol)

.. code:: solidity
.. code:: ts
pragma solidity ^0.4.23;
Expand Down Expand Up @@ -46,7 +48,7 @@ Examples
- ERC827 Interface inheritance (erc827_inheritance.sol)
.. code:: solidity
.. code:: ts
pragma solidity ^0.4.23;
Expand Down
8 changes: 5 additions & 3 deletions docs/erc-contract-standard-checker/erc884-checker.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.. _erc884-contract-standard-checker:

ERC884 Contract Standard Checker
===============================
================================

Enable contract standard checker with specific ERC
--------------------------------------------------
Expand All @@ -14,7 +16,7 @@ Examples

- ERC884 Interface (erc884_interface.sol)

.. code:: solidity
.. code:: ts
pragma solidity ^0.4.23;
Expand Down Expand Up @@ -66,7 +68,7 @@ Examples
- ERC884 Interface with missing function (missing_function.sol)
.. code:: solidity
.. code:: ts
pragma solidity ^0.4.23;
Expand Down

0 comments on commit fd4eaed

Please sign in to comment.