Clarify type declaration language
This commit is contained in:
parent
42001edc99
commit
2ed052d82f
1 changed files with 1 additions and 1 deletions
|
|
@ -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 in the same way as those for functions do. For example,
|
||||
if we wanted our `N` type to implement `Display`, so we can print the nodes out,
|
||||
we could do this:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue