Sync
This commit is contained in:
parent
6f050a029e
commit
776bba907c
3887 changed files with 59894 additions and 7280 deletions
|
|
@ -1,29 +1,42 @@
|
|||
/**
|
||||
* This is a documentation comment for somefunc and somefunc2.
|
||||
* Does not need to be preceded by '*' in every line - this is done purely for code style
|
||||
* $(DDOC_COMMENT comment inside a documentation comment (results in a HTML comment not displayed by the browser))
|
||||
* Header:
|
||||
* content (does not need to be tabbed out; this is done for clarity of the comments and has no effect on the
|
||||
* resulting documentation)
|
||||
* Params:
|
||||
* arg1 = Something (listed as "int <i>arg1</i> Something")
|
||||
* arg2 = Something else
|
||||
* Returns:
|
||||
* Nothing
|
||||
* TODO:
|
||||
* Nothing at all
|
||||
* BUGS:
|
||||
* None found
|
||||
*/
|
||||
void somefunc(int arg1, int arg2)
|
||||
{
|
||||
}
|
||||
// this groups this function with the above (both have the same doc and are listed together)
|
||||
This is a documentation comment for someFunc and someFunc2.
|
||||
$(DDOC_COMMENT comment inside a documentation comment
|
||||
(results in a HTML comment not displayed by the browser))
|
||||
|
||||
Header:
|
||||
content (does not need to be tabbed out; this is done for clarity
|
||||
of the comments and has no effect on the resulting documentation)
|
||||
|
||||
Params:
|
||||
arg1 = Something (listed as "int <i>arg1</i> Something")
|
||||
arg2 = Something else
|
||||
|
||||
Returns:
|
||||
Nothing
|
||||
|
||||
TODO:
|
||||
Nothing at all
|
||||
|
||||
BUG:
|
||||
None found
|
||||
*/
|
||||
void someFunc(int arg1, int arg2) {}
|
||||
|
||||
// This groups this function with the above (both have the
|
||||
// same doc and are listed together)
|
||||
/// ditto
|
||||
void somefunc2(int arg1, int arg2)
|
||||
{
|
||||
void someFunc2(int arg1, int arg2) {}
|
||||
|
||||
/// Sum function.
|
||||
int sum(in int x, in int y) pure nothrow {
|
||||
return x + y;
|
||||
}
|
||||
|
||||
// These unittests will become part of sum documentation:
|
||||
///
|
||||
unittest {
|
||||
assert(sum(2, 3) == 5);
|
||||
}
|
||||
|
||||
/++ Another documentation comment +/
|
||||
void main()
|
||||
{
|
||||
}
|
||||
void main() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue