mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
commit
185bd83916
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user