aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenton Liu <liu.denton+github@gmail.com>2016-05-13 01:25:00 +0800
committerDenton Liu <liu.denton+github@gmail.com>2016-05-13 01:25:00 +0800
commit20cec07b466b99893fecfb82a0f0e35acfb6bdda (patch)
tree36289e0f75fdfbe285cedad2daac2843bd3ea841
parent7b6fd013a473e93f1f9381de19e83c06697af10c (diff)
downloaddexon-solidity-20cec07b466b99893fecfb82a0f0e35acfb6bdda.tar.gz
dexon-solidity-20cec07b466b99893fecfb82a0f0e35acfb6bdda.tar.zst
dexon-solidity-20cec07b466b99893fecfb82a0f0e35acfb6bdda.zip
Removed unnecessary period
-rw-r--r--docs/control-structures.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/control-structures.rst b/docs/control-structures.rst
index 0e74c589..b24909a6 100644
--- a/docs/control-structures.rst
+++ b/docs/control-structures.rst
@@ -150,7 +150,7 @@ Scoping and Declarations
In Solidity, a variable declared anywhere within a function will be in scope for the *entire function*, regardless of where it is declared.
This happens because Solidity inherits its scoping rules from JavaScript.
This is in contrast to many languages where variables are only scoped where they are declared until the end of the semantic block.
-As a result, the following code is illegal and cause the compiler to throw an error, `Identifier already declared.`::
+As a result, the following code is illegal and cause the compiler to throw an error, `Identifier already declared`::
contract ScopingErrors {
function scoping() {
@@ -185,7 +185,7 @@ As a result, the following code is illegal and cause the compiler to throw an er
}
In addition to this, if a variable is declared, it will be initialized at the beginning of the function to its default value.
-As a result, the following code is legal, despite being poorly written.::
+As a result, the following code is legal, despite being poorly written::
function foo() returns (uint) {
// baz is implicitly initialized as 0