mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge remote-tracking branch 'origin/develop' into breaking
This commit is contained in:
@@ -124,6 +124,12 @@ Accessing an array past its end causes a failing assertion. Methods ``.push()``
|
||||
to append a new element at the end of the array, where ``.push()`` appends a zero-initialized element and returns
|
||||
a reference to it.
|
||||
|
||||
.. index:: ! string, ! bytes
|
||||
|
||||
.. _strings:
|
||||
|
||||
.. _bytes:
|
||||
|
||||
``bytes`` and ``strings`` as Arrays
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
@@ -381,7 +387,7 @@ If ``start`` is greater than ``end`` or if ``end`` is greater
|
||||
than the length of the array, an exception is thrown.
|
||||
|
||||
Both ``start`` and ``end`` are optional: ``start`` defaults
|
||||
to ``0`` and ``end`` defaults to the length of the array.
|
||||
to ``0`` and ``end`` defaults to the length of the array.
|
||||
|
||||
Array slices do not have any members. They are implicitly
|
||||
convertible to arrays of their underlying type
|
||||
@@ -494,7 +500,7 @@ shown in the following example:
|
||||
|
||||
The contract does not provide the full functionality of a crowdfunding
|
||||
contract, but it contains the basic concepts necessary to understand structs.
|
||||
Struct types can be used inside mappings and arrays and they can itself
|
||||
Struct types can be used inside mappings and arrays and they can themselves
|
||||
contain mappings and arrays.
|
||||
|
||||
It is not possible for a struct to contain a member of its own type,
|
||||
|
||||
Reference in New Issue
Block a user