mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix code snippets in docs not passing tests on versions matching their pragmas
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user