Skip to content

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

Merged
merged 1 commit into from
Nov 2, 2017
Merged

fix some typos #2104

merged 1 commit into from
Nov 2, 2017

Conversation

martinlindhe
Copy link
Contributor

This is the result of me testing out a WIP source code spell-checker
and your project was the random target this time.

Copy link
Member

@nrc nrc left a 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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be ellipsis

Copy link
Contributor Author

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,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here and below too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -233,7 +233,7 @@ fn repeats() {

fn blocks() {
if 1 + 1 == 2 {
println!("yay arithmetix!");
println!("yay arithmetics!");
Copy link
Member

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

Copy link
Contributor Author

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

@martinlindhe
Copy link
Contributor Author

i updated the pr and squashed the commits with feedback addressed

@@ -298,7 +298,7 @@ fn repeats() {

fn blocks() {
if 1 + 1 == 2 {
println!("yay arithmetix!");
println!("yay arithmetics!");
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, done

@nrc nrc merged commit 580c96b into rust-lang:master Nov 2, 2017
@nrc
Copy link
Member

nrc commented Nov 2, 2017

Thank you!

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