From d4ad3231a294bad3b5c81cde6e27ff38ecef7f76 Mon Sep 17 00:00:00 2001 From: Denton Liu Date: Fri, 13 May 2016 10:32:35 -0400 Subject: Removed trailing whitespace --- docs/common-patterns.rst | 2 +- docs/frequently-asked-questions.rst | 16 ++++++++-------- docs/installing-solidity.rst | 10 +++++----- docs/solidity-by-example.rst | 4 ++-- docs/structure-of-a-contract.rst | 20 ++++++++++---------- docs/types.rst | 22 +++++++++++----------- 6 files changed, 37 insertions(+), 37 deletions(-) diff --git a/docs/common-patterns.rst b/docs/common-patterns.rst index f4794221..842b7c37 100644 --- a/docs/common-patterns.rst +++ b/docs/common-patterns.rst @@ -203,7 +203,7 @@ function finishes. nextStage(); // The other stages transition by transaction } - + // Order of the modifiers matters here! function bid() timedTransitions 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 `_. @@ -175,7 +175,7 @@ datastructure on top of it, for example the `iterable mapping =`, `>` (evaluate to `bool`) -* Bit operators: `&`, `|`, `^` (bitwise exclusive or), `~` (bitwise negation) +* Comparisons: `<=`, `<`, `==`, `!=`, `>=`, `>` (evaluate to `bool`) +* Bit operators: `&`, `|`, `^` (bitwise exclusive or), `~` (bitwise negation) * Arithmetic operators: `+`, `-`, unary `-`, unary `+`, `*`, `/`, `%` (remainder), `**` (exponentiation) Division always truncates (it just maps to the DIV opcode of the EVM), but it does not truncate if both @@ -61,7 +61,7 @@ Address `address`: Holds a 20 byte value (size of an Ethereum address). Address types also have members and serve as base for all contracts. -Operators: +Operators: * `<=`, `<`, `==`, `!=`, `>=` and `>` @@ -109,12 +109,12 @@ All three functions `call`, `delegatecall` and `callcode` are very low-level fun Fixed-size byte arrays ---------------------- -`bytes1`, `bytes2`, `bytes3`, ..., `bytes32`. `byte` is an alias for `bytes1`. +`bytes1`, `bytes2`, `bytes3`, ..., `bytes32`. `byte` is an alias for `bytes1`. -Operators: +Operators: -* Comparisons: `<=`, `<`, `==`, `!=`, `>=`, `>` (evaluate to `bool`) -* Bit operators: `&`, `|`, `^` (bitwise exclusive or), `~` (bitwise negation) +* Comparisons: `<=`, `<`, `==`, `!=`, `>=`, `>` (evaluate to `bool`) +* Bit operators: `&`, `|`, `^` (bitwise exclusive or), `~` (bitwise negation) * Index access: If `x` is of type `bytesI`, then `x[k]` for `0 <= k < I` returns the `k` th byte (read-only). Members: @@ -125,7 +125,7 @@ Dynamically-sized byte array ---------------------------- `bytes`: - Dynamically-sized byte array, see :ref:`arrays`. Not a value-type! + Dynamically-sized byte array, see :ref:`arrays`. Not a value-type! `string`: Dynamically-sized UTF8-encoded string, see :ref:`arrays`. Not a value-type! @@ -140,7 +140,7 @@ number of bytes, always use one of `bytes1` to `bytes32` because they are much c Integer Literals ----------------- -Integer Literals are arbitrary precision integers until they are used together with a non-literal. In `var x = 1 - 2;`, for example, the value of `1 - 2` is `-1`, which is assigned to `x` and thus `x` receives the type `int8` -- the smallest type that contains `-1`, although the natural types of `1` and `2` are actually `uint8`. +Integer Literals are arbitrary precision integers until they are used together with a non-literal. In `var x = 1 - 2;`, for example, the value of `1 - 2` is `-1`, which is assigned to `x` and thus `x` receives the type `int8` -- the smallest type that contains `-1`, although the natural types of `1` and `2` are actually `uint8`. It is even possible to temporarily exceed the maximum of 256 bits as long as only integer literals are used for the computation: `var x = (0xffffffffffffffffffff * 0xffffffffffffffffffff) * 0;` Here, `x` will have the value `0` and thus the type `uint8`. -- cgit v1.2.3