Skip to content

Apply formatter to Crystal examples#665

Merged
straight-shoota merged 2 commits intocrystal-lang:masterfrom
straight-shoota:fix/formatter-yield-signature
Feb 8, 2023
Merged

Apply formatter to Crystal examples#665
straight-shoota merged 2 commits intocrystal-lang:masterfrom
straight-shoota:fix/formatter-yield-signature

Conversation

@straight-shoota
Copy link
Member

Adds block argument to signature of yielding methods (crystal-lang/crystal#12951).

Adds block argument to signature of yielding methods (crystal-lang/crystal#12951).
@netlify
Copy link

netlify bot commented Jan 25, 2023

Deploy Preview for crystal-book ready!

Name Link
🔨 Latest commit 4965843
🔍 Latest deploy log https://app.netlify.com/sites/crystal-book/deploys/63e3a7d2b1c4490008e3d0bf
😎 Deploy Preview https://deploy-preview-665--crystal-book.netlify.app/syntax_and_semantics/blocks_and_procs
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@beta-ziliani
Copy link
Member

The Blocks and Procs section requires some rewording to add coherence. For instance, mention the & before the first example, and then explain that you can remove it. Also, explain that the name is optional (e.g., &block).

@straight-shoota
Copy link
Member Author

straight-shoota commented Jan 31, 2023

Semantic changes to the specification belong in a separate PR.

This is a purely formal fix and necessary to avoid CI failures. It should just be merged without delay.

@beta-ziliani
Copy link
Member

beta-ziliani commented Feb 3, 2023

I disagree. The formatting changed the way code is presented, and as such it must be fixed together. I prefer to keep the text coherent than CI happy. Happy to review a following PR to be merged at the same time though.

@beta-ziliani
Copy link
Member

@straight-shoota can you review my added text? 🙇

Copy link
Member Author

@straight-shoota straight-shoota left a comment

Choose a reason for hiding this comment

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

LGTM

@straight-shoota straight-shoota merged commit ce59d6f into crystal-lang:master Feb 8, 2023
@straight-shoota straight-shoota deleted the fix/formatter-yield-signature branch February 8, 2023 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments