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

feat: refactored as_ref_mut.rs to as_ref.rs and as_mut1.rs and add as_mut2.rs #1306

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jtcours
Copy link

@jtcours jtcours commented Dec 27, 2022

While working on exercises/conversions/as_ref_mut.rs, I thought it would be helpful to add an exercise to generalize the num_sq() function to work with any numeric type. The process of making that change gave me a better understanding of the syntax for trait bounds.

The new exercise led to creating "as_mut2.rs", which, in turn, led to refactoring "as_ref_mut.rs" into "as_ref.rs" and "as_mut1.rs".

Apologies in advance for bumping into Frosthage's change (#1113) which updates the hint for "as_ref_mut.rs". This change incorporates the change into "as_mut1.rs" instead.

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.

1 participant