Skip to content

Commit 9e3611e

Browse files
committed
---
yaml --- r: 6081 b: refs/heads/master c: eabc9f2 h: refs/heads/master i: 6079: c9ad0e2 v: v3
1 parent 1ed8369 commit 9e3611e

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 4a2d277bbf09c7aa0bba18f22c7a7734374101b8
2+
refs/heads/master: eabc9f229574a906437dd63359caec1c15fb75ad

trunk/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

trunk/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

trunk/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

trunk/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)