Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rusti help text (for :clear) to match behavior #5788

Closed
wants to merge 2 commits into from
Closed

Update rusti help text (for :clear) to match behavior #5788

wants to merge 2 commits into from

Conversation

danluu
Copy link
Contributor

@danluu danluu commented Apr 8, 2013

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.

@ghost
Copy link

ghost commented Apr 9, 2013

Following the style of the previous text and the surrounding text, should it be clear the bindings instead?

bors added a commit that referenced this pull request Apr 9, 2013
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.
@bors bors closed this Apr 9, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jul 17, 2020
…1995

Removing RHS snippet from SHADOW_UNRELATED message.

Fixes rust-lang#5703

I am not sure if I reinvented the wheel here, but I could not really find a snippet function that did this truncation, so I created the function. Please tell me if there was a more obvious way to do this, I am new here. 😄

changelog: Truncates multi-line RHS in shadow_unrelated message if it has more than 5 lines.
calebcartwright added a commit to calebcartwright/rust that referenced this pull request Jun 20, 2023
…023-06-19

sync subtree in prep for next release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants