Skip to content

impl<T> is not introduced in the book #26991

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

Closed
shepmaster opened this issue Jul 12, 2015 · 4 comments
Closed

impl<T> is not introduced in the book #26991

shepmaster opened this issue Jul 12, 2015 · 4 comments

Comments

@shepmaster
Copy link
Member

There's only a few references to impl< in TRPL:

  1. src/doc/trpl/deref-coercions.md
  2. src/doc/trpl/lifetimes.md
  3. src/doc/trpl/unsized-types.md

None of these really mention that you use impl<T> to declare a typename that will participate in either the trait or item involved in the implementation.

@lastorset
Copy link
Contributor

I've got a draft going in my fork. Will submit a PR soon, but feel free to review it even before I do.

@shepmaster
Copy link
Member Author

@lastorset your docs look great! I added some initial comments in your branch. Thanks for taking a crack at this!

@steveklabnik
Copy link
Member

@lastorset yeah, please send a PR whenever you're ready :)

@lastorset
Copy link
Contributor

Thanks, I appreciate the feedback! I will work through my changes one more time before I submit.

steveklabnik added a commit to steveklabnik/rust that referenced this issue Aug 5, 2015
…eveklabnik

I also included some smaller trait-related changes.

Fixes rust-lang#26991.

r? @shepmaster 
r? @steveklabnik
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

No branches or pull requests

3 participants