Make append take a mutable &. Not even checked at present, tsk tsk.
This commit is contained in:
parent
dd0d255737
commit
74eda5bb70
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue