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

Fix typo in instance usage example #2139

Merged
merged 2 commits into from
Dec 15, 2024
Merged

Conversation

Morriar
Copy link
Contributor

@Morriar Morriar commented Dec 11, 2024

I believe what we want an Array[instance]?

@@ -291,7 +291,7 @@ class Foo

def foo: () -> instance
Copy link
Contributor Author

@Morriar Morriar Dec 11, 2024

Choose a reason for hiding this comment

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

@soutaro I'm also surprised by how it's used in foo case? What's the meaning of it? Is it the same as self?

Copy link
Contributor

Choose a reason for hiding this comment

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

Dummy names like ‘foo’ don’t always make comprehensible general examples. 👍

Copy link
Member

Choose a reason for hiding this comment

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

@Morriar This is in fact same with self. They are different on def self?.foo: , but yeah, it's exactly same in this case.

Copy link
Member

@soutaro soutaro left a comment

Choose a reason for hiding this comment

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

🙏

@soutaro soutaro added this pull request to the merge queue Dec 15, 2024
@soutaro soutaro added this to the RBS 3.8 milestone Dec 15, 2024
Merged via the queue into ruby:master with commit bb9d218 Dec 15, 2024
18 checks passed
@soutaro soutaro added the Released PRs already included in the released version label Dec 19, 2024
@ksss ksss mentioned this pull request Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Released PRs already included in the released version
Development

Successfully merging this pull request may close these issues.

3 participants