Fixed issue 6193: Appender.clear() functionality or documentation

This commit is contained in:
Steven Schveighoffer 2011-06-22 09:09:52 -04:00
parent fde6d40447
commit 6452327a1b
2 changed files with 4 additions and 1 deletions

View file

@ -1871,7 +1871,9 @@ Appends an entire range to the managed array.
static if(!is(T == immutable) && !is(T == const))
{
/**
Clears the managed array.
Clears the managed array. This allows the elements of the array to be reused for appending.
Note that clear is disabled for immutable or const element types, due to the possibility that $(D Appender) might overwrite immutable data.
*/
void clear()
{