Name-spacing the structure reference links for not being confused with the globally probably more used in-depth links

This commit is contained in:
holgerd77 2016-02-19 11:47:16 +01:00
parent acee4b7040
commit 448d1601ce

View File

@ -7,11 +7,11 @@ Structure of a Contract
*********************** ***********************
Contracts in Solidity are similar to classes in object-oriented languages. Contracts in Solidity are similar to classes in object-oriented languages.
Each contract can contain declarations of :ref:`state-variables`, :ref:`functions`, Each contract can contain declarations of :ref:`structure-state-variables`, :ref:`structure-functions`,
:ref:`function-modifiers`, :ref:`events`, :ref:`structs-types` and :ref:`enum-types`. :ref:`structure-function-modifiers`, :ref:`structure-events`, :ref:`structure-structs-types` and :ref:`structure-enum-types`.
Furthermore, contracts can inherit from other contracts. Furthermore, contracts can inherit from other contracts.
.. _state-variables: .. _structure-state-variables:
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 :ref:`visibility-and-accessors` for possible choices for
visability. visability.
.. _functions: .. _structure-functions:
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`) and have different levels of visibility (:ref:`visibility-and-accessors`)
towards other contracts. towards other contracts.
.. _function-modifiers: .. _structure-function-modifiers:
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. See :ref:`modifiers` in the section on contracts for a more in-depth explanation.
.. _events: .. _structure-events:
Events Events
====== ======
@ -90,7 +90,7 @@ Events are convenience interfaces with the EVM logging facilities.
} }
} }
.. _structs-types: .. _structure-structs-types:
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 Enum Types
========== ==========