[go: up one dir, main page]

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

Swap variables using destructuring assignment #7

Merged
merged 2 commits into from
Oct 30, 2024
Merged

Conversation

glyn
Copy link
Contributor
@glyn glyn commented Oct 25, 2024

This construct was stabilised in Rust 1.59.

See https://stackoverflow.com/questions/31798737/how-to-swap-two-variables.

Since Rust 1.59 was released in February 2022, before this repository existed, you may care to apply this change. If you would prefer to support earlier versions of Rust, don't hesitate to close this PR.

@drtconway drtconway merged commit d58b1b8 into drtconway:main Oct 30, 2024
@glyn
Copy link
Contributor Author
glyn commented Nov 1, 2024

@drtconway I wanted to thank you for merging my PRs. You may be interested in this blog post which talks about your code: https://underlap.org/open-development-experiment-ordering-function-definition

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