Skip to content

Commit 357e78d

Browse files
committed
Minor spelling/grammar/usage fixes.
Note: "different to" is not exactly incorrect, but "different from" is more commonly accepted in both US and Commonwealth English, and also more consistent with other usage within this tutorial.
1 parent d92eba7 commit 357e78d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/doc/tutorial.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -2841,11 +2841,11 @@ use farm::cow;
28412841

28422842
The path you give to `use` is per default global, meaning relative to the crate root,
28432843
no matter how deep the module hierarchy is, or whether the module body it's written in
2844-
is contained in its own file (remember: files are irrelevant).
2844+
is contained in its own file. (Remember: files are irrelevant.)
28452845

2846-
This is different to other languages, where you often only find a single import construct that combines the semantic
2846+
This is different from other languages, where you often only find a single import construct that combines the semantic
28472847
of `mod foo;` and `use`-statements, and which tend to work relative to the source file or use an absolute file path
2848-
- Rubys `require` or C/C++'s `#include` come to mind.
2848+
- Ruby's `require` or C/C++'s `#include` come to mind.
28492849

28502850
However, it's also possible to import things relative to the module of the `use`-statement:
28512851
Adding a `super::` in front of the path will start in the parent module,
@@ -3025,7 +3025,7 @@ The nested `barn` module is private, but the `pub use` allows users
30253025
of the module `farm` to access a function from `barn` without needing
30263026
to know that `barn` exists.
30273027

3028-
In other words, you can use them to decouple an public api from their internal implementation.
3028+
In other words, you can use it to decouple a public api from its internal implementation.
30293029

30303030
## Using libraries
30313031

0 commit comments

Comments
 (0)