about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-04-09 06:10:01 -0700
committerbors <bors@rust-lang.org>2013-04-09 06:10:01 -0700
commite56a17879aaa88787326e0bf3f7742980fed270e (patch)
tree1631869bd6b4e5654e2bd1f808efbc71ef411092
parentc6a4ba9791371a25474ab6145175f71072c3cccd (diff)
parenteaa8bbbb2e23cf68d4f6ea961af025ab4ac67eca (diff)
downloadrust-e56a17879aaa88787326e0bf3f7742980fed270e.tar.gz
rust-e56a17879aaa88787326e0bf3f7742980fed270e.zip
auto merge of #5788 : danluu/rust/rusti_clear, r=bstrie
The old help text reads "clear the screen", but :clear seems intended to do something completely different. I'm not sure what the intent is. If it's really supposed to clear the screen, not only does it not clear the screen, it does something completely different.

```
rusti> fn foo() { println("called foo!") }
()
rusti> foo();
called foo!
()
rusti> :clear
rusti> foo();
<anon>:34:0: 34:3 error: unresolved name: `foo`.
<anon>:34 foo();
```

Per the contributor guidelines, here's the reason there's no testcase: it's a comment string.
-rw-r--r--src/librusti/rusti.rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librusti/rusti.rc b/src/librusti/rusti.rc
index 6b91377b674..fcc799b665f 100644
--- a/src/librusti/rusti.rc
+++ b/src/librusti/rusti.rc
@@ -273,7 +273,7 @@ fn run_cmd(repl: &mut Repl, _in: @io::Reader, _out: @io::Writer,
                 ~":{\\n ..lines.. \\n:}\\n - execute multiline command\n" +
                 ~":load <crate> ... - \
                   loads given crates as dynamic libraries\n" +
-                ~":clear - clear the screen\n" +
+                ~":clear - clear the bindings\n" +
                 ~":exit - exit from the repl\n" +
                 ~":help - show this message");
         }