Skip to content

Commit 0896670

Browse files
authored
Merge pull request #4247 from rust-lang/ch-fix-another-chapter-eighteen
Another Ch. 17 -> 18 fix
2 parents 814c7e5 + 6b65e95 commit 0896670

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ch05-03-method-syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name, they can have parameters and a return value, and they contain some code
55
that’s run when the method is called from somewhere else. Unlike functions,
66
methods are defined within the context of a struct (or an enum or a trait
77
object, which we cover in [Chapter 6][enums]<!-- ignore --> and [Chapter
8-
17][trait-objects]<!-- ignore -->, respectively), and their first parameter is
8+
18][trait-objects]<!-- ignore -->, respectively), and their first parameter is
99
always `self`, which represents the instance of the struct the method is being
1010
called on.
1111

0 commit comments

Comments
 (0)