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

@ -20,5 +20,6 @@ $(VERSION 054, ddd mm, 2011, =================================================,
$(LI $(BUGZILLA 6076): regression, std.regex: "c.*|d" matches "mm")
$(LI $(BUGZILLA 6113): singletons in std.datetime are not created early enough)
$(LI $(BUGZILLA 5705): Swapping identical struct with hasElaborateAssign causes "overlapping array copy" exception)
$(LI $(BUGZILLA 6193): Appender.clear() functionality or documentation)
)
)

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()
{