Skip to content

Commit e56a178

Browse files
committed
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.
2 parents c6a4ba9 + eaa8bbb commit e56a178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librusti/rusti.rc

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ fn run_cmd(repl: &mut Repl, _in: @io::Reader, _out: @io::Writer,
273273
~":{\\n ..lines.. \\n:}\\n - execute multiline command\n" +
274274
~":load <crate> ... - \
275275
loads given crates as dynamic libraries\n" +
276-
~":clear - clear the screen\n" +
276+
~":clear - clear the bindings\n" +
277277
~":exit - exit from the repl\n" +
278278
~":help - show this message");
279279
}

0 commit comments

Comments
 (0)