aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-09-14 01:40:38 +0800
committerchriseth <chris@ethereum.org>2018-09-17 21:25:25 +0800
commita32fb75f8f9d1d86fd38ae7fc15b27f162fca2c4 (patch)
treefe58ffeecf314d27fc7b1d6031ae601bb8bf2c5f
parent40b71cb9773def6a2fdbb2172c38995067854822 (diff)
downloaddexon-solidity-a32fb75f8f9d1d86fd38ae7fc15b27f162fca2c4.tar
dexon-solidity-a32fb75f8f9d1d86fd38ae7fc15b27f162fca2c4.tar.gz
dexon-solidity-a32fb75f8f9d1d86fd38ae7fc15b27f162fca2c4.tar.bz2
dexon-solidity-a32fb75f8f9d1d86fd38ae7fc15b27f162fca2c4.tar.lz
dexon-solidity-a32fb75f8f9d1d86fd38ae7fc15b27f162fca2c4.tar.xz
dexon-solidity-a32fb75f8f9d1d86fd38ae7fc15b27f162fca2c4.tar.zst
dexon-solidity-a32fb75f8f9d1d86fd38ae7fc15b27f162fca2c4.zip
Some cleanup in structure section.
-rw-r--r--docs/contracts.rst2
-rw-r--r--docs/structure-of-a-contract.rst9
2 files changed, 9 insertions, 2 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst
index b9179b27..470d775e 100644
--- a/docs/contracts.rst
+++ b/docs/contracts.rst
@@ -1210,6 +1210,8 @@ Abstract contracts are useful in the same way that defining methods in an interf
.. index:: ! contract;interface, ! interface contract
+.. _interfaces:
+
**********
Interfaces
**********
diff --git a/docs/structure-of-a-contract.rst b/docs/structure-of-a-contract.rst
index ae349055..1b4a6c55 100644
--- a/docs/structure-of-a-contract.rst
+++ b/docs/structure-of-a-contract.rst
@@ -11,6 +11,11 @@ Each contract can contain declarations of :ref:`structure-state-variables`, :ref
:ref:`structure-function-modifiers`, :ref:`structure-events`, :ref:`structure-struct-types` and :ref:`structure-enum-types`.
Furthermore, contracts can inherit from other contracts.
+There are also special kinds of contracts called :ref:`libraries<libraries>` and :ref:`interfaces<interfaces>`.
+
+The section about :ref:`contracts<contracts>` contains more details than this section,
+which serves to provide a quick overview.
+
.. _structure-state-variables:
State Variables
@@ -49,7 +54,7 @@ Functions are the executable units of code within a contract.
}
:ref:`function-calls` can happen internally or externally
-and have different levels of visibility (:ref:`visibility-and-getters`)
+and have different levels of :ref:`visibility<visibility-and-getters>`
towards other contracts.
.. _structure-function-modifiers:
@@ -58,7 +63,7 @@ Function Modifiers
==================
Function modifiers can be used to amend the semantics of functions in a declarative way
-(see :ref:`modifiers` in contracts section).
+(see :ref:`modifiers` in the contracts section).
::