From 748d8404d247aa5fa8dca733d37e3f5e1e9db2b6 Mon Sep 17 00:00:00 2001 From: Christophe Vu-Brugier Date: Mon, 9 Jan 2017 13:58:00 +0100 Subject: [PATCH] Fix two spelling errors in chapter 7 Signed-off-by: Christophe Vu-Brugier --- src/ch07-00-modules.md | 2 +- src/ch07-02-controlling-visibility-with-pub.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ch07-00-modules.md b/src/ch07-00-modules.md index 87691702f..19ff0f9f6 100644 --- a/src/ch07-00-modules.md +++ b/src/ch07-00-modules.md @@ -5,7 +5,7 @@ When you start writing programs in Rust, your code might live solely in the into other functions, both for re-use and for better organization. By splitting your code up into smaller chunks, each chunk is easier to understand on its own. But what happens if you find yourself with too many functions? Rust has a -module system that handles the problem of wanting to to re-use code while +module system that handles the problem of wanting to re-use code while keeping your code organized. In the same way that you extract lines of code into a function, you can extract diff --git a/src/ch07-02-controlling-visibility-with-pub.md b/src/ch07-02-controlling-visibility-with-pub.md index 7d1c2b256..ce43462e7 100644 --- a/src/ch07-02-controlling-visibility-with-pub.md +++ b/src/ch07-02-controlling-visibility-with-pub.md @@ -263,7 +263,7 @@ is allowed to access the `outermost` module since `outermost` is in the current The call to `outermost::middle_function` will work. This is because `middle_function` is public, and `try_me` is accessing `middle_function` -through its parent module, `outermost` We determined in the previous paragraph +through its parent module, `outermost`. We determined in the previous paragraph that this module is accessible. The call to `outermost::middle_secret_function` will cause a compilation error.