aboutsummaryrefslogtreecommitdiffstats
path: root/docs/contracts.rst
diff options
context:
space:
mode:
authorChris Ward <chriswhward@gmail.com>2018-07-30 20:11:40 +0800
committerChris Ward <chriswhward@gmail.com>2018-07-30 21:48:06 +0800
commit6c3a2f8e9ba09f58a94b75e6e4b1f91f48886389 (patch)
tree919b55b4e4658d887eaa4632c889341f199e71b7 /docs/contracts.rst
parent705cbbc19a96c465b06973cd832c3674b956eba8 (diff)
downloaddexon-solidity-6c3a2f8e9ba09f58a94b75e6e4b1f91f48886389.tar.gz
dexon-solidity-6c3a2f8e9ba09f58a94b75e6e4b1f91f48886389.tar.zst
dexon-solidity-6c3a2f8e9ba09f58a94b75e6e4b1f91f48886389.zip
Clarify what ‘memory type’ is
Use RST links
Diffstat (limited to 'docs/contracts.rst')
-rw-r--r--docs/contracts.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst
index 51d7923d..e78c3ff7 100644
--- a/docs/contracts.rst
+++ b/docs/contracts.rst
@@ -1201,7 +1201,7 @@ contracts (``L.f()`` if ``L`` is the name of the library). Furthermore,
``internal`` functions of libraries are visible in all contracts, just as
if the library were a base contract. Of course, calls to internal functions
use the internal calling convention, which means that all internal types
-can be passed and memory types will be passed by reference and not copied.
+can be passed and types :ref:`stored in memory <data-location>` will be passed by reference and not copied.
To realize this in the EVM, code of internal library functions
and all functions called from therein will at compile time be pulled into the calling
contract, and a regular ``JUMP`` call will be used instead of a ``DELEGATECALL``.
@@ -1282,7 +1282,7 @@ actual external function call is performed.
in this call, though (prior to Homestead, because of the use of ``CALLCODE``, ``msg.sender`` and
``msg.value`` changed, though).
-The following example shows how to use memory types and
+The following example shows how to use :ref:`types stored in memory <data-location>` and
internal functions in libraries in order to implement
custom types without the overhead of external function calls: