Skip to content

Commit

Permalink
Fixed DDoc warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lionello committed May 30, 2015
1 parent ebc90dc commit 8fc047f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 25 deletions.
23 changes: 4 additions & 19 deletions std/experimental/logger/core.d
Expand Up @@ -502,15 +502,18 @@ template defaultLogFunction(LogLevel ll)
}
}

/** This function logs data to the $(D stdThreadLocalLog).
/** This function logs data to the $(D stdThreadLocalLog), optionally depending
on a condition.
In order for the resulting log message to be logged the $(D LogLevel) must
be greater or equal than the $(D LogLevel) of the $(D stdThreadLocalLog) and
must be greater or equal than the global $(D LogLevel).
Additionally the $(D LogLevel) must be greater or equal than the $(D LogLevel)
of the $(D stdSharedLogger).
If a condition is given, it must evaluate to $(D true).
Params:
condition = The condition must be $(D true) for the data to be logged.
args = The data that should be logged.
Examples:
Expand All @@ -520,24 +523,6 @@ info(1337, "is number");
error(1337, "is number");
critical(1337, "is number");
fatal(1337, "is number");
--------------------
The second version of the function logs data to the $(D stdThreadLocalLog) depending
on a condition.
In order for the resulting log message to be logged the $(D LogLevel) must
be greater or equal than the $(D LogLevel) of the $(D stdThreadLocalLog) and
must be greater or equal than the global $(D LogLevel) additionally the
condition passed must be $(D true).
Additionally the $(D LogLevel) must be greater or equal than the $(D LogLevel)
of the $(D stdSharedLogger).
Params:
condition = The condition must be $(D true) for the data to be logged.
args = The data that should be logged.
Examples:
--------------------
trace(true, 1337, "is number");
info(false, 1337, "is number");
error(true, 1337, "is number");
Expand Down
4 changes: 2 additions & 2 deletions std/random.d
Expand Up @@ -1684,8 +1684,8 @@ if (is(E == enum))
* for some applications.
*
* Params:
* urng = (optional) random number generator to use;
* if not specified, defaults to $(D rndGen)
* rng = (optional) random number generator to use;
* if not specified, defaults to $(D rndGen)
*
* Returns:
* Floating-point random variate of type $(D T) drawn from the _uniform
Expand Down
2 changes: 1 addition & 1 deletion std/range/package.d
Expand Up @@ -2783,7 +2783,7 @@ or $(XREF array,array), or to use it in a foreach loop.
A by-value foreach loop means that the loop value is not $(D ref).
Params:
Fun = is the $(D isCallable) that gets called on every call to front.
fun = is the $(D isCallable) that gets called on every call to front.
Returns: an $(D inputRange) that returns a new value generated by $(D Fun) on
any call to $(D front).
Expand Down
2 changes: 2 additions & 0 deletions std/socket.d
Expand Up @@ -1886,6 +1886,8 @@ version(StdDdoc)
*/
class UnixAddress: Address
{
private this() pure nothrow @nogc {}

/// Construct a new $(D UnixAddress) from the specified path.
this(in char[] path) { }

Expand Down
4 changes: 2 additions & 2 deletions std/string.d
Expand Up @@ -3224,7 +3224,7 @@ S leftJustify(S)(S s, size_t width, dchar fillChar = ' ')
$(D s) doesn't fill.
Params:
s = string or range of characters
r = string or range of characters
width = minimum field width
fillChar = used to pad end up to $(D width) characters
Expand Down Expand Up @@ -3352,7 +3352,7 @@ S rightJustify(S)(S s, size_t width, dchar fillChar = ' ')
$(D s) doesn't fill.
Params:
s = string or forward range of characters
r = string or forward range of characters
width = minimum field width
fillChar = used to pad end up to $(D width) characters
Expand Down
2 changes: 1 addition & 1 deletion std/utf.d
Expand Up @@ -1101,7 +1101,7 @@ body
Params:
useReplacementDchar = if invalid UTF, return replacementDchar rather than throwing
str = input string or indexable Range
numCodeUnites = set to number of code units processed
numCodeUnits = set to number of code units processed
Returns:
decoded character
Expand Down

0 comments on commit 8fc047f

Please sign in to comment.