mirror of
https://github.com/dlang/phobos.git
synced 2025-05-05 09:30:49 +03:00
Merge formatValue documents for class and interface.
This commit is contained in:
parent
95c16dc075
commit
b08e7c9995
1 changed files with 4 additions and 5 deletions
|
@ -1419,6 +1419,8 @@ if (isPointer!T && !isInputRange!T)
|
|||
|
||||
/**
|
||||
Objects are formatted by calling $(D toString).
|
||||
Interfaces are formatted by casting to $(D Object) and then calling
|
||||
$(D toString).
|
||||
*/
|
||||
void formatValue(Writer, T, Char)(Writer w, T val, ref FormatSpec!Char f)
|
||||
if (!isSomeString!T && is(T == class) && !isInputRange!T)
|
||||
|
@ -1429,10 +1431,7 @@ if (!isSomeString!T && is(T == class) && !isInputRange!T)
|
|||
else put(w, val.toString);
|
||||
}
|
||||
|
||||
/**
|
||||
Interfaces are formatted by casting to $(D Object) and then calling
|
||||
$(D toString).
|
||||
*/
|
||||
/// ditto
|
||||
void formatValue(Writer, T, Char)(Writer w, T val, ref FormatSpec!Char f)
|
||||
if (is(T == interface) && !isInputRange!T)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue