From 6b65e9500535f85fad186c6f0e67a927863e454d Mon Sep 17 00:00:00 2001 From: Chris Krycho Date: Wed, 26 Feb 2025 13:20:07 -0700 Subject: [PATCH] Another Ch. 17 -> 18 fix --- src/ch05-03-method-syntax.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch05-03-method-syntax.md b/src/ch05-03-method-syntax.md index e03180f2a5..ab92d19ac0 100644 --- a/src/ch05-03-method-syntax.md +++ b/src/ch05-03-method-syntax.md @@ -5,7 +5,7 @@ name, they can have parameters and a return value, and they contain some code that’s run when the method is called from somewhere else. Unlike functions, methods are defined within the context of a struct (or an enum or a trait object, which we cover in [Chapter 6][enums] and [Chapter -17][trait-objects], respectively), and their first parameter is +18][trait-objects], respectively), and their first parameter is always `self`, which represents the instance of the struct the method is being called on.