mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Comment code examples
This commit is contained in:
parent
0e44481b0f
commit
688313cc51
@ -119,6 +119,16 @@ Comments
|
||||
|
||||
Single-line comments (`//`) and multi-line comments (`/*...*/`) are possible.
|
||||
|
||||
::
|
||||
|
||||
// This is a single-line comment.
|
||||
|
||||
/*
|
||||
This is a
|
||||
multi-line comment.
|
||||
*/
|
||||
|
||||
|
||||
There are special types of comments called natspec comments
|
||||
(documentation yet to be written). These are introduced by
|
||||
triple-slash comments (`///`) or using double asterisks (`/** ... */`).
|
||||
|
Loading…
Reference in New Issue
Block a user