Skip to content

Commit eabc9f2

Browse files
committed
Fix some typos in tutorial
1 parent 4a2d277 commit eabc9f2

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

doc/tutorial/ffi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Interacting with foreign code
22

3-
On of Rust's aims, as a system programming language, is to
3+
One of Rust's aims, as a system programming language, is to
44
interoperate well with C code.
55

66
We'll start with an example. It's a bit bigger than usual, and

doc/tutorial/func.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ stored in data structures or returned.
6161
A block with no arguments is written `{|| body(); }`—you can not leave
6262
off the pipes.
6363

64+
FIXME mention bind
65+
6466
## Iteration
6567

6668
Functions taking blocks provide a good way to define non-trivial

doc/tutorial/mod.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Modules and crates
22

3-
The Rust namespace is divided in modules. Each source file starts with
4-
its own, empty module.
3+
The Rust namespace is divided into modules. Each source file starts
4+
with its own, empty module.
55

66
## Local modules
77

@@ -153,7 +153,7 @@ restricted with `export` directives at the top of the module or file.
153153

154154
This defines a rock-solid encryption algorithm. Code outside of the
155155
module can refer to the `enc::encrypt` and `enc::decrypt` identifiers
156-
just fine, but it does not have access to `enc::syper_secret_number`.
156+
just fine, but it does not have access to `enc::super_secret_number`.
157157

158158
## Namespaces
159159

@@ -185,10 +185,10 @@ context.
185185
Identifiers can shadow each others. In this program, `x` is of type
186186
`int`:
187187

188-
type x = str;
188+
type t = str;
189189
fn main() {
190-
type x = int;
191-
let x: int;
190+
type t = int;
191+
let x: t;
192192
}
193193

194194
An `import` directive will only import into the namespaces for which

doc/tutorial/syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ like `if` and `while` are available:
3535

3636
## Expression syntax
3737

38-
Though it isn't apparent in most everyday code, there is a fundamental
38+
Though it isn't apparent in all code, there is a fundamental
3939
difference between Rust's syntax and the predecessors in this family
4040
of languages. A lot of thing that are statements in C are expressions
4141
in Rust. This allows for useless things like this (which passes

0 commit comments

Comments
 (0)