Skip to content

Commit

Permalink
Rollup merge of rust-lang#35595 - urschrei:associated_types_docfix, r…
Browse files Browse the repository at this point in the history
…=steveklabnik

Clarify type declaration language in Associated Types docs

A small fix for the Associated Types docs

r? @steveklabnik
  • Loading branch information
Jonathan Turner authored Aug 17, 2016
2 parents d3f55e1 + 31da7f6 commit b8859f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/book/associated-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ trait Graph {
Simple enough. Associated types use the `type` keyword, and go inside the body
of the trait, with the functions.

These `type` declarations can have all the same thing as functions do. For example,
These type declarations work the same way as those for functions. For example,
if we wanted our `N` type to implement `Display`, so we can print the nodes out,
we could do this:

Expand Down

0 comments on commit b8859f6

Please sign in to comment.