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

Add an example of an operator delegation #5779

Merged
merged 1 commit into from Mar 7, 2018

Conversation

vendethiel
Copy link
Contributor

Would've saved me a few minutes :-).

src/object.cr Outdated
@@ -1072,6 +1072,7 @@ class Object
# delegate downcase, to: @string
# delegate gsub, to: @string
# delegate empty?, capitalize, to: @string
# delegate :[], to @string
Copy link
Contributor

@wooster0 wooster0 Mar 6, 2018

Choose a reason for hiding this comment

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

Oh but I think you are missing the : here. At the other lines its to: @string at the end. But here its to @string.

@jhass jhass merged commit 8e66045 into crystal-lang:master Mar 7, 2018
@jhass
Copy link
Member

jhass commented Mar 7, 2018

Thank you!

@RX14 RX14 added this to the Next milestone Mar 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants