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 ch10-02-traits.md #771

Merged
merged 1 commit into from
Feb 22, 2024
Merged

Update ch10-02-traits.md #771

merged 1 commit into from
Feb 22, 2024

Conversation

769344359
Copy link
Contributor

The impl Trait syntax works for straightforward cases but is actually syntax sugar for a longer form known as a trait bound; it looks like this:

改变语序,更加容易读
https://github.com/rust-lang/book/blob/19c40bfd2d57641d962f3119a1c343355f1b3c5e/src/ch10-02-traits.md?plain=1#L216

@KaiserY KaiserY merged commit c26a869 into KaiserY:main Feb 22, 2024
2 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