Merge pull request #7575 from ethereum/fixVersion

Fix pragmas
This commit is contained in:
chriseth 2019-10-28 14:05:39 +01:00 committed by GitHub
commit 185bd83916
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -35,9 +35,7 @@ a good idea to read through the changelog at least for releases that contain
breaking changes. These releases always have versions of the form
``0.x.0`` or ``x.0.0``.
The version pragma is used as follows::
pragma solidity ^0.5.2;
The version pragma is used as follows: ``pragma solidity ^0.5.2;``
A source file with the line above does not compile with a compiler earlier than version 0.5.2,
and it also does not work on a compiler starting from version 0.6.0 (this

View File

@ -49,7 +49,7 @@ The following example shows a contract and a function using all available tags.
.. code:: solidity
pragma solidity ^0.5.6;
pragma solidity >=0.5.0 <0.7.0;
/// @title A simulator for trees
/// @author Larry A. Gardner