aboutsummaryrefslogtreecommitdiffstats
path: root/docs/frequently-asked-questions.rst
diff options
context:
space:
mode:
authorDenton Liu <liu.denton+github@gmail.com>2016-05-13 22:32:35 +0800
committerDenton Liu <liu.denton+github@gmail.com>2016-05-18 23:35:32 +0800
commitd4ad3231a294bad3b5c81cde6e27ff38ecef7f76 (patch)
tree1a4de5d0b70e0f983dc4d98a678c42018a9c4fad /docs/frequently-asked-questions.rst
parent4b9e9cad562b96fc1d6eeb59a2115544c89cf72a (diff)
downloaddexon-solidity-d4ad3231a294bad3b5c81cde6e27ff38ecef7f76.tar.gz
dexon-solidity-d4ad3231a294bad3b5c81cde6e27ff38ecef7f76.tar.zst
dexon-solidity-d4ad3231a294bad3b5c81cde6e27ff38ecef7f76.zip
Removed trailing whitespace
Diffstat (limited to 'docs/frequently-asked-questions.rst')
-rw-r--r--docs/frequently-asked-questions.rst16
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/frequently-asked-questions.rst b/docs/frequently-asked-questions.rst
index 454083f2..1b78d666 100644
--- a/docs/frequently-asked-questions.rst
+++ b/docs/frequently-asked-questions.rst
@@ -139,10 +139,10 @@ with `c.someMethod.sendTransaction({from:eth.accounts[x], gas: 1000000});`
That is, because they can change state, they have to have a gas
payment sent along to get the work done.
-Get a contract to return its funds to you (not using selfdestruct(...)).
+Get a contract to return its funds to you (not using selfdestruct(...)).
========================================================================
-This example demonstrates how to send funds from a contract to an address.
+This example demonstrates how to send funds from a contract to an address.
See `endowment_retriever <https://github.com/fivedogit/solidity-baby-steps/blob/master/contracts/30_endowment_retriever.sol>`_.
@@ -175,7 +175,7 @@ datastructure on top of it, for example the `iterable mapping <https://github.co
Can I put arrays inside of a mapping? How do I make a mapping of a mapping?
===========================================================================
-Mappings are already syntactically similar to arrays as they are, therefore it doesn't make much sense to store an array in them. Rather what you should do is create a mapping of a mapping.
+Mappings are already syntactically similar to arrays as they are, therefore it doesn't make much sense to store an array in them. Rather what you should do is create a mapping of a mapping.
An example of this would be::
@@ -278,7 +278,7 @@ Is a constructor required?
No. If there is no constructor, a generic one without arguments and no actions will be used.
-Are timestamps (now, block.timestamp) reliable?
+Are timestamps (now, block.timestamp) reliable?
===============================================
This depends on what you mean by "reliable".
@@ -327,7 +327,7 @@ should implement the fallback function as
`function() { throw; }`
this will cause all transactions to this contract that do not call an
-existing function to be reverted, so that all Ether is sent back.
+existing function to be reverted, so that all Ether is sent back.
Another use of the fallback function is to e.g. register that your
contract received ether by using an event.
@@ -347,7 +347,7 @@ by `msg.data`.
Can state variables be initialized in-line?
===========================================
-Yes, this is possible for all types (even for structs). However, for arrays it
+Yes, this is possible for all types (even for structs). However, for arrays it
should be noted that you must declare them as static memory arrays.
Examples::
@@ -360,7 +360,7 @@ Examples::
S public x = S(1, 2);
string name = "Ada";
- string[4] memory AdaArr = ["This", "is", "an", "array"];
+ string[4] memory AdaArr = ["This", "is", "an", "array"];
}
@@ -726,7 +726,7 @@ In this example::
Can a contract function accept a two-dimensional array?
=======================================================
-This is not yet implemented for external calls and dynamic arrays -
+This is not yet implemented for external calls and dynamic arrays -
you can only use one level of dynamic arrays.
What is the relationship between bytes32 and string? Why is it that ‘bytes32 somevar = "stringliteral";’ works and what does the saved 32-byte hex value mean?