From 688313cc5131a8aa156c2837a3629842e17ec93c Mon Sep 17 00:00:00 2001 From: holgerd77 Date: Thu, 18 Feb 2016 11:08:20 +0100 Subject: Comment code examples --- docs/layout-of-source-files.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'docs/layout-of-source-files.rst') 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 (`/** ... */`). -- cgit v1.2.3