From 65cb1229a671a3475b4eab2dcbdccc42d9b45c0c Mon Sep 17 00:00:00 2001 From: Ynda Jas Date: Wed, 28 Feb 2024 21:50:35 +0000 Subject: [PATCH 1/2] Fix missing `the` in 04-03 --- src/ch04-03-slices.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch04-03-slices.md b/src/ch04-03-slices.md index 6ffb1dc114..c94fdc56f2 100644 --- a/src/ch04-03-slices.md +++ b/src/ch04-03-slices.md @@ -266,7 +266,7 @@ a string slice for the type of the `s` parameter If we have a string slice, we can pass that directly. If we have a `String`, we can pass a slice of the `String` or a reference to the `String`. This -flexibility takes advantage of *deref coercions*, a feature we will cover in +flexibility takes advantage of *deref coercions*, a feature we will cover in the [“Implicit Deref Coercions with Functions and Methods”][deref-coercions] section of Chapter 15. From af775b870f026141530289f7714d51174bfb0d5a Mon Sep 17 00:00:00 2001 From: Ynda Jas Date: Sat, 9 Mar 2024 02:23:59 +0000 Subject: [PATCH 2/2] Fix grammar in 07-03 --- ...ch07-03-paths-for-referring-to-an-item-in-the-module-tree.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch07-03-paths-for-referring-to-an-item-in-the-module-tree.md b/src/ch07-03-paths-for-referring-to-an-item-in-the-module-tree.md index c8fb3247ff..e2e627eb75 100644 --- a/src/ch07-03-paths-for-referring-to-an-item-in-the-module-tree.md +++ b/src/ch07-03-paths-for-referring-to-an-item-in-the-module-tree.md @@ -185,7 +185,7 @@ interested in this topic, see [The Rust API Guidelines][api-guidelines]. > package name by default. Typically, packages with this pattern of containing > both a library and a binary crate will have just enough code in the binary > crate to start an executable that calls code with the library crate. This -> lets other projects benefit from the most functionality that the package +> lets other projects benefit from most of the functionality that the package > provides, because the library crate’s code can be shared. > > The module tree should be defined in *src/lib.rs*. Then, any public items can