-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Suggest fn
if fun
, func
, function
or def
is used instead
#99751
Comments
@rustbot claim |
New to rustc community and wants to contribute code.
Very newbie questions, thank you in advance. |
Instructions --
Should be helpful to take #99903 as a reference |
We can include |
fn
if func
or function
is used insteadfn
if fun
, func
, function
or def
is used instead
Hi guys, another rust newbie looking for something easy to get started here. @ypprog are you still on this or could go with my attempt here? |
@adam-tokarski ypprog does seem to be active and it hasn't been that long, if you'd like you can pick another issue. =) Try going through the E-Easy and/or E-Mentor category for easy issues. However, to clarify, if an issue which is claimed doesn't seem to have any work done for a long period of time (A month or so is a good amount of time) -- Feel free to ping the assignee to confirm and handle it accordingly. |
With these changes, I also think it is important to implement improved error messages for when a user puts the return type at the start of the function instead of the end. Given this code: u32 foo() {
100
} The error output is:
|
I feel like adding |
Is this still being worked on? @ypprog |
@rustbot release-assignment |
@rustbot claim |
Given the following code:
The current output is:
Ideally the error message should suggest replacing
func
orfunction
withfn
.The text was updated successfully, but these errors were encountered: