diff --git a/ch07-00-modules.html b/ch07-00-modules.html index 671af89a0..58e602bda 100644 --- a/ch07-00-modules.html +++ b/ch07-00-modules.html @@ -73,7 +73,7 @@ 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 functions (and other code like structs and enums too) into different modules. A diff --git a/ch07-02-controlling-visibility-with-pub.html b/ch07-02-controlling-visibility-with-pub.html index ccea424f3..8632218d1 100644 --- a/ch07-02-controlling-visibility-with-pub.html +++ b/ch07-02-controlling-visibility-with-pub.html @@ -273,7 +273,7 @@ is allowed to access the outermost module since outermosttry_me.

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. middle_secret_function is private, so the second rule applies. The root diff --git a/print.html b/print.html index 110bfcafd..23bbb0b66 100644 --- a/print.html +++ b/print.html @@ -4703,7 +4703,7 @@ Rust's modules.

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 functions (and other code like structs and enums too) into different modules. A @@ -5305,7 +5305,7 @@ is allowed to access the outermost module since outermosttry_me.

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. middle_secret_function is private, so the second rule applies. The root