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

Update README.rst—cleaned up match example #163

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

dogweather
Copy link
Contributor

This Readme section shows how the code looks with the "elegant" match construct.

Part of its elegance is no need to create an intermediate variable—while preserving the clarity of the code.

So I made the match example more idiomatic. And IMO it demonstrates more strongly the benefit of this project.

Copy link
Member

@francium francium left a comment

Choose a reason for hiding this comment

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

Thanks

@francium francium merged commit 6a50cac into rustedpy:master Dec 19, 2023
5 checks passed
@dogweather dogweather deleted the patch-1 branch December 19, 2023 21:42
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.

2 participants