mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Name-spacing the structure reference links for not being confused with the globally probably more used in-depth links
This commit is contained in:
parent
acee4b7040
commit
448d1601ce
@ -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
|
||||||
==========
|
==========
|
||||||
|
Loading…
Reference in New Issue
Block a user