mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #11662 from ethereum/docs-fix-highlighting-and-upgrade-pygments
[Docs] Fix highlighting and always use latest packages
This commit is contained in:
@@ -97,7 +97,7 @@ four indexed arguments rather than three.
|
||||
|
||||
The use in the JavaScript API is as follows:
|
||||
|
||||
::
|
||||
.. code-block:: javascript
|
||||
|
||||
var abi = /* abi as generated by the compiler */;
|
||||
var ClientReceipt = web3.eth.contract(abi);
|
||||
|
||||
@@ -18,7 +18,7 @@ if they are marked ``virtual``. For details, please see
|
||||
.. code-block:: solidity
|
||||
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
pragma solidity >0.7.0 <0.9.0;
|
||||
pragma solidity >=0.7.1 <0.9.0;
|
||||
|
||||
contract owned {
|
||||
constructor() { owner = payable(msg.sender); }
|
||||
|
||||
@@ -15,7 +15,7 @@ that call them, similar to internal library functions.
|
||||
.. code-block:: solidity
|
||||
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
pragma solidity >0.7.0 <0.9.0;
|
||||
pragma solidity >=0.7.1 <0.9.0;
|
||||
|
||||
function sum(uint[] memory _arr) pure returns (uint s) {
|
||||
for (uint i = 0; i < _arr.length; i++)
|
||||
|
||||
@@ -130,6 +130,7 @@ internal functions in libraries in order to implement
|
||||
custom types without the overhead of external function calls:
|
||||
|
||||
.. code-block:: solidity
|
||||
:force:
|
||||
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
pragma solidity ^0.8.0;
|
||||
|
||||
Reference in New Issue
Block a user