Make append take a mutable &. Not even checked at present, tsk tsk.

This commit is contained in:
Graydon Hoare 2010-10-22 11:46:54 -07:00
parent dd0d255737
commit 74eda5bb70

View file

@ -71,7 +71,7 @@ fn istr(int i) -> str {
// boxed value to a vector-of-boxes using +=. Best to figure out a way to fix
// this. Deref-on-demand or something? It's a hazard of the ambiguity between
// single-element and vector append.
fn append[T](&vec[T] v, &T t) {
fn append[T](&mutable vec[T] v, &T t) {
v += t;
}