-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Off-by-one in println! diagnostic #44954
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
Comments
Mentoring instructionsModify
The following case are already handled in other parts of the code:
|
Hi, I was wondering if this PR is still ongoing? I've started learning Rust and I was wondering if you think I can tackle this, I'm very curious and driven to learn more about the language and also how programming languages are built. Thank you for your feedback. |
@BrunoWilkinson go ahead! People are available at https://gitter.im/rust-impl-period/WG-compiler-errors and on IRC for quick questions as well as on this issue for longer questions. Once you create a PR we can continue the conversation there. There are instructions to build the compiler, and if you want to use debug statements, you can use |
@estebank thank you, I'm gonna check all this out and give it a shot! |
Hey @BrunoWilkinson - are you still looking at this? If not, I'd like to have a go. |
Hey @bagedevimo, currently no I couldn't find the time to tackle the issue, In parallel, I'm still learning Rust. But I would love to see the solution to this issue like I did spend some time on it. |
Hey @bagedevimo are you working on this? |
Yeah, but not having much luck. If you're super keen and beat me to it, I
won't be upset. :)
…On Sat, Nov 4, 2017 at 5:31 AM Tommy Ip ***@***.***> wrote:
Hey @bagedevimo <https://github.com/bagedevimo> are you working on this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#44954 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABQjhVLKBKhn6c4BxAp6RjtJqI_y5w7-ks5syz_bgaJpZM4Pp3co>
.
|
Currently let name = "foo";
println!("{} {value} {}", name, value=2); produces the output |
@tommyip I believe that is expected behavior, let's keep it and handle the other cases laid down in the mentoring instructions. |
This program:
Gives this error:
Both things having 1 here is confusing, it'd be nicer if we didn't compare a zero-indexed and a one-indexed number.
Additionally, a note could make this easier to understand overall too.
The text was updated successfully, but these errors were encountered: