From d8d849355081a3f7c3abc9d26d1d8038c9e713ac Mon Sep 17 00:00:00 2001 From: chriseth Date: Mon, 28 Oct 2019 12:35:01 +0100 Subject: [PATCH] Fix pragma version for testing. --- docs/layout-of-source-files.rst | 4 +--- docs/natspec-format.rst | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/layout-of-source-files.rst b/docs/layout-of-source-files.rst index 7a811fa4b..31e89b1e5 100644 --- a/docs/layout-of-source-files.rst +++ b/docs/layout-of-source-files.rst @@ -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 diff --git a/docs/natspec-format.rst b/docs/natspec-format.rst index cfc94d81b..bdeb3c622 100644 --- a/docs/natspec-format.rst +++ b/docs/natspec-format.rst @@ -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