aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorholgerd77 <Holger.Drewes@googlemail.com>2016-02-18 18:08:20 +0800
committerholgerd77 <Holger.Drewes@googlemail.com>2016-02-18 18:08:20 +0800
commit688313cc5131a8aa156c2837a3629842e17ec93c (patch)
tree5425c0d869d04187e728f0a575ed80437eeb9f12 /docs
parent0e44481b0fa2a40c756602bd779b871ad6fcd347 (diff)
downloaddexon-solidity-688313cc5131a8aa156c2837a3629842e17ec93c.tar
dexon-solidity-688313cc5131a8aa156c2837a3629842e17ec93c.tar.gz
dexon-solidity-688313cc5131a8aa156c2837a3629842e17ec93c.tar.bz2
dexon-solidity-688313cc5131a8aa156c2837a3629842e17ec93c.tar.lz
dexon-solidity-688313cc5131a8aa156c2837a3629842e17ec93c.tar.xz
dexon-solidity-688313cc5131a8aa156c2837a3629842e17ec93c.tar.zst
dexon-solidity-688313cc5131a8aa156c2837a3629842e17ec93c.zip
Comment code examples
Diffstat (limited to 'docs')
-rw-r--r--docs/layout-of-source-files.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/layout-of-source-files.rst b/docs/layout-of-source-files.rst
index 07934560..48ecfb09 100644
--- a/docs/layout-of-source-files.rst
+++ b/docs/layout-of-source-files.rst
@@ -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 (`/** ... */`).