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

examples: fix (2021-09) #11234

Merged
merged 1 commit into from
Sep 22, 2021
Merged

Conversation

maiha
Copy link
Contributor

@maiha maiha commented Sep 19, 2021

Let's catch up examples before crystal-1.2.0 😃

Best regards,

@@ -244,8 +244,6 @@ struct Slice(T)
# ```
# a = Slice["a", "b", "c", "d", "e"]
# a[1..3] # => Slice["b", "c", "d"]
# # range.end > array.size
# a[3..7] # => Slice["d", "e"]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is not correct because a[3..7] raises IndexError.
And since the usage are written right after here, I simply removed the code here.

Copy link
Member

@sdogruyol sdogruyol left a comment

Choose a reason for hiding this comment

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

Thank you @maiha 🙏

@straight-shoota straight-shoota added this to the 1.2.0 milestone Sep 20, 2021
@straight-shoota straight-shoota merged commit 2da26bd into crystal-lang:master Sep 22, 2021
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