Fix code snippets in docs not passing tests on versions matching their pragmas

This commit is contained in:
Kamil Śliwak
2020-12-12 04:52:16 +01:00
parent 304b2fe232
commit 0f6f4314b6
5 changed files with 9 additions and 5 deletions
+2 -2
View File
@@ -243,7 +243,7 @@ individual elements:
::
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.0 <0.8.0;
pragma solidity >=0.4.16 <0.8.0;
contract C {
function f() public pure {
@@ -554,4 +554,4 @@ assigning it to a local variable, as in
.. note::
Until Solidity 0.7.0, memory-structs containing members of storage-only types (e.g. mappings)
were allowed and assignments like ``campaigns[campaignID] = Campaign(beneficiary, goal, 0, 0)``
in the example above would work and just silently skip those members.
in the example above would work and just silently skip those members.