mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Clarify that public applies to state variables
This commit is contained in:
committed by
Chris Chinchilla
parent
d7211c17e9
commit
7e4896740d
+10
-7
@@ -36,12 +36,16 @@ Documentation is inserted above each ``class``, ``interface`` and
|
||||
documentation <https://vyper.readthedocs.io/en/latest/structure-of-a-contract.html#natspec-metadata>`__.
|
||||
|
||||
The following example shows a contract and a function using all available tags.
|
||||
Note: NatSpec currently does NOT apply to public state variables (see
|
||||
`solidity#3418 <https://github.com/ethereum/solidity/issues/3418>`__),
|
||||
even if they are declared public and therefore do affect the ABI. Note:
|
||||
The Solidity compiler only interprets tags if they are external or
|
||||
public. You are welcome to use similar comments for your internal and
|
||||
private functions, but those will not be parsed.
|
||||
|
||||
.. note::
|
||||
|
||||
NatSpec currently does NOT apply to public state variables (see
|
||||
`solidity#3418 <https://github.com/ethereum/solidity/issues/3418>`__),
|
||||
even if they are declared public and therefore do affect the ABI.
|
||||
|
||||
The Solidity compiler only interprets tags if they are external or
|
||||
public. You are welcome to use similar comments for your internal and
|
||||
private functions, but those will not be parsed.
|
||||
|
||||
.. code:: solidity
|
||||
|
||||
@@ -196,4 +200,3 @@ file should also be produced and should look like this:
|
||||
},
|
||||
"title" : "A simulator for trees"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user