diff options
author | holgerd77 <Holger.Drewes@googlemail.com> | 2016-02-19 18:47:16 +0800 |
---|---|---|
committer | holgerd77 <Holger.Drewes@googlemail.com> | 2016-02-19 18:47:16 +0800 |
commit | 448d1601ce4c90e33ab43d896d08d34d2b870843 (patch) | |
tree | 3d2bc03607be8dd53b893a425113df2d865d574e | |
parent | acee4b7040b5b7991b540ecf59a9dd5d7fc1fb5a (diff) | |
download | dexon-solidity-448d1601ce4c90e33ab43d896d08d34d2b870843.tar.gz dexon-solidity-448d1601ce4c90e33ab43d896d08d34d2b870843.tar.zst dexon-solidity-448d1601ce4c90e33ab43d896d08d34d2b870843.zip |
Name-spacing the structure reference links for not being confused with the globally probably more used in-depth links
-rw-r--r-- | docs/structure-of-a-contract.rst | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/structure-of-a-contract.rst b/docs/structure-of-a-contract.rst index 7b3dca60..8691d33a 100644 --- a/docs/structure-of-a-contract.rst +++ b/docs/structure-of-a-contract.rst @@ -7,11 +7,11 @@ Structure of a Contract *********************** Contracts in Solidity are similar to classes in object-oriented languages. -Each contract can contain declarations of :ref:`state-variables`, :ref:`functions`, -:ref:`function-modifiers`, :ref:`events`, :ref:`structs-types` and :ref:`enum-types`. +Each contract can contain declarations of :ref:`structure-state-variables`, :ref:`structure-functions`, +:ref:`structure-function-modifiers`, :ref:`structure-events`, :ref:`structure-structs-types` and :ref:`structure-enum-types`. Furthermore, contracts can inherit from other contracts. -.. _state-variables: +.. _structure-state-variables: State Variables =============== @@ -29,7 +29,7 @@ See the :ref:`types` section for valid state variable types and :ref:`visibility-and-accessors` for possible choices for visability. -.. _functions: +.. _structure-functions: Functions ========= @@ -44,11 +44,11 @@ Functions are the executable units of code within a contract. } } -Functions can be called internally or externally (:ref:`function-calls`) +:ref:`function-calls` can happen internally or externally and have different levels of visibility (:ref:`visibility-and-accessors`) towards other contracts. -.. _function-modifiers: +.. _structure-function-modifiers: Function Modifiers ================== @@ -72,7 +72,7 @@ Function modifiers can be used to amend the semantics of functions in a declarat See :ref:`modifiers` in the section on contracts for a more in-depth explanation. -.. _events: +.. _structure-events: Events ====== @@ -90,7 +90,7 @@ Events are convenience interfaces with the EVM logging facilities. } } -.. _structs-types: +.. _structure-structs-types: Structs Types ============= @@ -108,7 +108,7 @@ Structs are custom defined types that can group several variables. } } -.. _enum-types: +.. _structure-enum-types: Enum Types ========== |