From ebc17d1fd1715835820fbcf204dc3b846979e89d Mon Sep 17 00:00:00 2001 From: Forrest Hopkins Date: Fri, 8 Nov 2024 19:18:15 -0800 Subject: [PATCH 1/2] Fix minor grammatical error The antecedent of "that" in this context is "places", not "one", so it is plural. --- 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 1ea896b38e..289094d78b 100644 --- a/src/ch05-03-method-syntax.md +++ b/src/ch05-03-method-syntax.md @@ -98,7 +98,7 @@ are and how to designate a field or method as public or private in [Chapter > > Rust doesn’t have an equivalent to the `->` operator; instead, Rust has a > feature called *automatic referencing and dereferencing*. Calling methods is -> one of the few places in Rust that has this behavior. +> one of the few places in Rust that have this behavior. > > Here’s how it works: when you call a method with `object.something()`, Rust > automatically adds in `&`, `&mut`, or `*` so `object` matches the signature of From 0566029791674d63c2767bd53c868837dd182ca3 Mon Sep 17 00:00:00 2001 From: Chris Krycho Date: Wed, 18 Dec 2024 10:32:57 -0700 Subject: [PATCH 2/2] Ch. 5.3: dodge a grammatical tripwire MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Which verb tense matches? Make it so we don’t have to care! --- 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 289094d78b..1310fe23c2 100644 --- a/src/ch05-03-method-syntax.md +++ b/src/ch05-03-method-syntax.md @@ -98,7 +98,7 @@ are and how to designate a field or method as public or private in [Chapter > > Rust doesn’t have an equivalent to the `->` operator; instead, Rust has a > feature called *automatic referencing and dereferencing*. Calling methods is -> one of the few places in Rust that have this behavior. +> one of the few places in Rust with this behavior. > > Here’s how it works: when you call a method with `object.something()`, Rust > automatically adds in `&`, `&mut`, or `*` so `object` matches the signature of