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

reminds probably was meant to be resembles #344

Closed
wants to merge 2 commits into from

Conversation

Kallin
Copy link
Contributor

@Kallin Kallin commented Dec 12, 2024

I believe there's a typo in the node_pattern docs. This change fixes the sentence.

@@ -3,7 +3,7 @@
Node pattern is a DSL to help find specific nodes in the Abstract Syntax Tree
using a simple string.

It reminds the simplicity of regular expressions but used to find specific
It resembles the simplicity of regular expressions but used to find specific
Copy link
Contributor

@Earlopain Earlopain Dec 12, 2024

Choose a reason for hiding this comment

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

I guess it was supposed to be this?

Suggested change
It resembles the simplicity of regular expressions but used to find specific
It reminds of the simplicity of regular expressions but is used to find specific

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It reminds of the is not clear English.
Adding the 2nd is does make sense though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated the PR w/ the change

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You might say:

It reminds one of the simplicity.. or It may remind you of the simplicity... but that sounds too informal.

@Kallin
Copy link
Contributor Author

Kallin commented Dec 12, 2024

even better:

It evokes the pattern-matching capabilities of regular expressions, but is designed to target specific nodes in Ruby code.

@marcandre marcandre closed this in d256e04 Dec 12, 2024
@marcandre
Copy link
Contributor

Good catch. I changed it to "Node pattern is a DSL to help find specific nodes in the Abstract Syntax Tree
using a simple string, in a similar fashion to how Regexp is used to find text."

@marcandre
Copy link
Contributor

even better:

It evokes the pattern-matching capabilities of regular expressions, but is designed to target specific nodes in Ruby code.

That's nice, I went for that and put you as author @Kallin , thanks

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.

3 participants