about summary refs log tree commit diff
path: root/src/test/run-pass/issue-4241.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/issue-4241.rs')
-rw-r--r--src/test/run-pass/issue-4241.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass/issue-4241.rs b/src/test/run-pass/issue-4241.rs
index 19622cb88e3..89cf2f69b34 100644
--- a/src/test/run-pass/issue-4241.rs
+++ b/src/test/run-pass/issue-4241.rs
@@ -100,7 +100,7 @@ priv fn cmd_to_string(cmd: ~[String]) -> String {
   let mut res = "*".to_string();
   res.push_str(cmd.len().to_string());
   res.push_str("\r\n");
-    for s in cmd.iter() {
+    for s in &cmd {
     res.push_str(["$".to_string(), s.len().to_string(), "\r\n".to_string(),
                   (*s).clone(), "\r\n".to_string()].concat() );
     }