aboutsummaryrefslogtreecommitdiffstats
path: root/docs/introduction-to-smart-contracts.rst
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-09-26 22:36:19 +0800
committerGitHub <noreply@github.com>2018-09-26 22:36:19 +0800
commita86e1d187b929124c27365a8f2e185545c4157b1 (patch)
tree3ec0af55892023ecba4f1935edf7d3fd6ef45cef /docs/introduction-to-smart-contracts.rst
parent410d94c49802ffd1a8cc834e30630308aed7283b (diff)
parentd51b55c847aa75b664d260b2bb54afdefb005f9f (diff)
downloaddexon-solidity-a86e1d187b929124c27365a8f2e185545c4157b1.tar
dexon-solidity-a86e1d187b929124c27365a8f2e185545c4157b1.tar.gz
dexon-solidity-a86e1d187b929124c27365a8f2e185545c4157b1.tar.bz2
dexon-solidity-a86e1d187b929124c27365a8f2e185545c4157b1.tar.lz
dexon-solidity-a86e1d187b929124c27365a8f2e185545c4157b1.tar.xz
dexon-solidity-a86e1d187b929124c27365a8f2e185545c4157b1.tar.zst
dexon-solidity-a86e1d187b929124c27365a8f2e185545c4157b1.zip
Merge pull request #4995 from ethereum/docs-2180-improve-introduction
Docs: Add content from old Solidity wiki
Diffstat (limited to 'docs/introduction-to-smart-contracts.rst')
-rw-r--r--docs/introduction-to-smart-contracts.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/introduction-to-smart-contracts.rst b/docs/introduction-to-smart-contracts.rst
index 2d4777e8..5e841417 100644
--- a/docs/introduction-to-smart-contracts.rst
+++ b/docs/introduction-to-smart-contracts.rst
@@ -8,8 +8,9 @@ Introduction to Smart Contracts
A Simple Smart Contract
***********************
-Let us begin with the most basic example. It is fine if you do not understand everything
-right now, we will go into more detail later.
+Let us begin with a basic example that sets the value of a variable and exposes
+it for other contracts to access. It is fine if you do not understand
+everything right now, we will go into more detail later.
Storage
=======
@@ -34,7 +35,7 @@ The first line simply tells that the source code is written for
Solidity version 0.4.0 or anything newer that does not break functionality
(up to, but not including, version 0.5.0). This is to ensure that the
contract is not compilable with a new (breaking) compiler version, where it could behave differently.
-So-called pragmas are common instrutions for compilers about how to treat the
+So-called pragmas are common instructions for compilers about how to treat the
source code (e.g. `pragma once <https://en.wikipedia.org/wiki/Pragma_once>`_).
A contract in the sense of Solidity is a collection of code (its *functions*) and