diff options
| author | Graydon Hoare <[email protected]> | 2010-10-22 11:46:54 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-10-22 11:46:54 -0700 |
| commit | 74eda5bb70b5f653ab835bc0f2ea6fb85e421356 (patch) | |
| tree | e193f5ed806af505cf7053f632a7f51cbb4b97c8 /src | |
| parent | Add some filename helpers to os. (diff) | |
| download | rust-74eda5bb70b5f653ab835bc0f2ea6fb85e421356.tar.xz rust-74eda5bb70b5f653ab835bc0f2ea6fb85e421356.zip | |
Make append take a mutable &. Not even checked at present, tsk tsk.
Diffstat (limited to 'src')
| -rw-r--r-- | src/comp/util/common.rs | 2 |
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; } |