aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-03-16 19:07:52 +0800
committerGitHub <noreply@github.com>2017-03-16 19:07:52 +0800
commitdbd103f2d2ac94db0a0af6ad916f86ef1bb69406 (patch)
treeeccc399434e71f96812f5d42bfad018860d296b3
parenta2eb2c0ae7359c5b54e606fe8c44efb8d491f0ce (diff)
parent2d8b0fdc39eb8ddaa840fb1ecd478ad7869cb769 (diff)
downloaddexon-solidity-dbd103f2d2ac94db0a0af6ad916f86ef1bb69406.tar.gz
dexon-solidity-dbd103f2d2ac94db0a0af6ad916f86ef1bb69406.tar.zst
dexon-solidity-dbd103f2d2ac94db0a0af6ad916f86ef1bb69406.zip
Merge pull request #1786 from ethereum/docs-backticks
Fix inconsistent use of single backticks
-rw-r--r--docs/style-guide.rst2
-rw-r--r--docs/types.rst4
-rw-r--r--docs/units-and-global-variables.rst2
3 files changed, 4 insertions, 4 deletions
diff --git a/docs/style-guide.rst b/docs/style-guide.rst
index 9aae3d7b..0742d2e9 100644
--- a/docs/style-guide.rst
+++ b/docs/style-guide.rst
@@ -164,7 +164,7 @@ Functions should be grouped according to their visibility and ordered:
- internal
- private
-Within a grouping, place the `constant` functions last.
+Within a grouping, place the ``constant`` functions last.
Yes::
diff --git a/docs/types.rst b/docs/types.rst
index 243a9a0c..6379f01c 100644
--- a/docs/types.rst
+++ b/docs/types.rst
@@ -232,7 +232,7 @@ a non-rational number).
Integer literals and rational number literals belong to number literal types.
Moreover, all number literal expressions (i.e. the expressions that
contain only number literals and operators) belong to number literal
- types. So the number literal expressions `1 + 2` and `2 + 1` both
+ types. So the number literal expressions ``1 + 2`` and ``2 + 1`` both
belong to the same number literal type for the rational number three.
.. note::
@@ -261,7 +261,7 @@ a non-rational number).
String Literals
---------------
-String literals are written with either double or single-quotes (``"foo"`` or ``'bar'``). They do not imply trailing zeroes as in C; `"foo"`` represents three bytes not four. As with integer literals, their type can vary, but they are implicitly convertible to ``bytes1``, ..., ``bytes32``, if they fit, to ``bytes`` and to ``string``.
+String literals are written with either double or single-quotes (``"foo"`` or ``'bar'``). They do not imply trailing zeroes as in C; ``"foo"`` represents three bytes not four. As with integer literals, their type can vary, but they are implicitly convertible to ``bytes1``, ..., ``bytes32``, if they fit, to ``bytes`` and to ``string``.
String literals support escape characters, such as ``\n``, ``\xNN`` and ``\uNNNN``. ``\xNN`` takes a hex value and inserts the appropriate byte, while ``\uNNNN`` takes a Unicode codepoint and inserts an UTF-8 sequence.
diff --git a/docs/units-and-global-variables.rst b/docs/units-and-global-variables.rst
index 49fe5d84..e4f0ea43 100644
--- a/docs/units-and-global-variables.rst
+++ b/docs/units-and-global-variables.rst
@@ -93,7 +93,7 @@ Mathematical and Cryptographic Functions
``keccak256(...) returns (bytes32)``:
compute the Ethereum-SHA-3 (Keccak-256) hash of the (tightly packed) arguments
``sha3(...) returns (bytes32)``:
- alias to `keccak256()`
+ alias to ``keccak256()``
``sha256(...) returns (bytes32)``:
compute the SHA-256 hash of the (tightly packed) arguments
``ripemd160(...) returns (bytes20)``: