-
Notifications
You must be signed in to change notification settings - Fork 931
fix some typos #2104
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
fix some typos #2104
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few corrections inline. Thanks!
src/patterns.rs
Outdated
PatKind::Struct(ref path, ref fields, elipses) => { | ||
rewrite_struct_pat(path, fields, elipses, self.span, context, shape) | ||
PatKind::Struct(ref path, ref fields, ellipses) => { | ||
rewrite_struct_pat(path, fields, ellipses, self.span, context, shape) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be ellipsis
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, thanks!
src/patterns.rs
Outdated
@@ -130,7 +130,7 @@ impl Rewrite for Pat { | |||
fn rewrite_struct_pat( | |||
path: &ast::Path, | |||
fields: &[codemap::Spanned<ast::FieldPat>], | |||
elipses: bool, | |||
ellipses: bool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here and below too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
tests/source/expr.rs
Outdated
@@ -233,7 +233,7 @@ fn repeats() { | |||
|
|||
fn blocks() { | |||
if 1 + 1 == 2 { | |||
println!("yay arithmetix!"); | |||
println!("yay arithmetics!"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is deliberate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this change from the PR
i updated the pr and squashed the commits with feedback addressed |
tests/target/expr.rs
Outdated
@@ -298,7 +298,7 @@ fn repeats() { | |||
|
|||
fn blocks() { | |||
if 1 + 1 == 2 { | |||
println!("yay arithmetix!"); | |||
println!("yay arithmetics!"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
THis will need reverting too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, done
Thank you! |
This is the result of me testing out a WIP source code spell-checker
and your project was the random target this time.