Forward reference to enum and trait object chapters

This commit is contained in:
Carol (Nichols || Goulding) 2016-09-26 18:31:57 -04:00
parent a929b91341
commit 4eb3b6271c

View File

@ -4,9 +4,9 @@
their name, they can take arguments and return values, and they contain some
code that gets run when they're called from somewhere else. Methods are
different from functions, however, because they're defined within the context
of a struct (or an enum or a trait object, but we're going to focus on structs
in this chapter), and their first argument is always `self`, which represents
the instance of the struct that the method is being called on.
of a struct (or an enum or a trait object, which we will cover in Chapters 6
and XX respectively), and their first argument is always `self`, which
represents the instance of the struct that the method is being called on.
### Defining Methods