Rollup merge of #35595 - urschrei:associated_types_docfix, r=steveklabnik
Clarify type declaration language in Associated Types docs A small fix for the Associated Types docs r? @steveklabnik
This commit is contained in:
commit
b8859f6956
@ -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:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user