From 9bc6bb6f263ebd57ba10f069b32ae4ca0cba701a Mon Sep 17 00:00:00 2001 From: Dale Seo <5466341+DaleSeo@users.noreply.github.com> Date: Thu, 4 Dec 2025 19:58:06 -0500 Subject: [PATCH] Correct setter method description in documentation --- book/src/03_ticket_v1/07_setters.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/src/03_ticket_v1/07_setters.md b/book/src/03_ticket_v1/07_setters.md index caaf92fcd8..dba2a33922 100644 --- a/book/src/03_ticket_v1/07_setters.md +++ b/book/src/03_ticket_v1/07_setters.md @@ -29,10 +29,10 @@ are respected (i.e. you can't set a `Ticket`'s title to an empty string). There are two common ways to implement setters in Rust: -- Taking `self` as input. +- Taking `mut self` as input. - Taking `&mut self` as input. -### Taking `self` as input +### Taking `mut self` as input The first approach looks like this: