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

Change hints of exercises traits4 and traits5 for a better learning experience #1978

Merged
merged 1 commit into from
May 29, 2024

Conversation

jkauerl
Copy link
Contributor

@jkauerl jkauerl commented May 25, 2024

This pull request consist of one commit which changes the format of the hints in the exercises 4 and 5 of traits.

In short, it changes the "<" to "[" like this:

hint = """
"Instead of using concrete types as parameters you can use traits. Try replacing 
the '??' with 'impl [what goes here?]

See the documentation at: https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters
"""

The reasoning for changing "<" is that right before you learn about using generics. So one could think that the solution to the exercises is by using generics.

@mo8it mo8it merged commit d140d49 into rust-lang:main May 29, 2024
6 checks passed
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