Merge pull request #515 from ssonicblue/patch-1

Update natspec summary in layout-of-source-files.rst
This commit is contained in:
chriseth 2016-05-06 01:01:26 +02:00
commit 1b7e2d3068

View File

@ -129,10 +129,11 @@ Single-line comments (`//`) and multi-line comments (`/*...*/`) are possible.
*/ */
There are special types of comments called natspec comments Additionally, there is another type of comment called a natspec comment,
(documentation yet to be written). These are introduced by for which the documentation is not yet written. They are written with a
triple-slash comments (`///`) or using double asterisks (`/** ... */`). triple slash (`///`) or a double asterisk block(`/** ... */`) and
Right in front of function declarations or statements, they should be used directly above function declarations or statements.
you can use doxygen-style tags inside them to document functions, annotate conditions for formal You can use Doxygen-style tags inside these comments to document
verification and provide a **confirmation text** that is shown to users if they want to functions, annotate conditions for formal verification, and provide a
invoke a function. **confirmation text** which is shown to users when they attempt to invoke a
function.