mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
Make append take a mutable &. Not even checked at present, tsk tsk.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user