aboutsummaryrefslogtreecommitdiffstats
path: root/docs/frequently-asked-questions.rst
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-09-24 20:46:23 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-09-26 02:03:25 +0800
commit3ca00c73f9bac055f44bb5e3e27fdcb7ced0ee5c (patch)
tree6679b9e4363b7df17df5136a0830ef4a105bd4b6 /docs/frequently-asked-questions.rst
parentc9f468b7172157752df64c4ff3d7bfab01650a65 (diff)
downloaddexon-solidity-3ca00c73f9bac055f44bb5e3e27fdcb7ced0ee5c.tar
dexon-solidity-3ca00c73f9bac055f44bb5e3e27fdcb7ced0ee5c.tar.gz
dexon-solidity-3ca00c73f9bac055f44bb5e3e27fdcb7ced0ee5c.tar.bz2
dexon-solidity-3ca00c73f9bac055f44bb5e3e27fdcb7ced0ee5c.tar.lz
dexon-solidity-3ca00c73f9bac055f44bb5e3e27fdcb7ced0ee5c.tar.xz
dexon-solidity-3ca00c73f9bac055f44bb5e3e27fdcb7ced0ee5c.tar.zst
dexon-solidity-3ca00c73f9bac055f44bb5e3e27fdcb7ced0ee5c.zip
Update version pragma in all documentation examples
Diffstat (limited to 'docs/frequently-asked-questions.rst')
-rw-r--r--docs/frequently-asked-questions.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/frequently-asked-questions.rst b/docs/frequently-asked-questions.rst
index d2b7de9c..d9b5f417 100644
--- a/docs/frequently-asked-questions.rst
+++ b/docs/frequently-asked-questions.rst
@@ -57,7 +57,7 @@ array in the return statement. Pretty cool, huh?
Example::
- pragma solidity ^0.4.16;
+ pragma solidity >=0.4.16 <0.6.0;
contract C {
function f() public pure returns (uint8[5] memory) {
@@ -87,7 +87,7 @@ should be noted that you must declare them as static memory arrays.
Examples::
- pragma solidity ^0.4.0;
+ pragma solidity >=0.4.0 <0.6.0;
contract C {
struct S {
@@ -127,7 +127,7 @@ which will be extended in the future. In addition, Arachnid has written `solidit
For now, if you want to modify a string (even when you only want to know its length),
you should always convert it to a ``bytes`` first::
- pragma solidity ^0.4.0;
+ pragma solidity >=0.4.0 <0.6.0;
contract C {
string s;
@@ -330,7 +330,7 @@ Can a contract pass an array (static size) or string or ``bytes`` (dynamic size)
Sure. Take care that if you cross the memory / storage boundary,
independent copies will be created::
- pragma solidity ^0.4.16;
+ pragma solidity >=0.4.16 <0.6.0;
contract C {
uint[20] x;
@@ -367,7 +367,7 @@ contract level) with ``arrayname.length = <some new length>;``. If you get the
::
- pragma solidity ^0.4.18;
+ pragma solidity >=0.4.18 <0.6.0;
// This will not compile
contract C {