aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-10-22 11:46:54 -0700
committerGraydon Hoare <[email protected]>2010-10-22 11:46:54 -0700
commit74eda5bb70b5f653ab835bc0f2ea6fb85e421356 (patch)
treee193f5ed806af505cf7053f632a7f51cbb4b97c8
parentAdd some filename helpers to os. (diff)
downloadrust-74eda5bb70b5f653ab835bc0f2ea6fb85e421356.tar.xz
rust-74eda5bb70b5f653ab835bc0f2ea6fb85e421356.zip
Make append take a mutable &. Not even checked at present, tsk tsk.
-rw-r--r--src/comp/util/common.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/util/common.rs b/src/comp/util/common.rs
index 20bff22d..56f30e07 100644
--- a/src/comp/util/common.rs
+++ b/src/comp/util/common.rs
@@ -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;
}