Skip to content

Commit 91cdaab

Browse files
committed
---
yaml --- r: 147185 b: refs/heads/try2 c: 55d2d8e h: refs/heads/master i: 147183: 5bd00c2 v: v3
1 parent 5394b4a commit 91cdaab

File tree

378 files changed

+3515
-5013
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

378 files changed

+3515
-5013
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: d52e1bffe5e0f8c5183df07583b666457d2059c0
8+
refs/heads/try2: 55d2d8eec9f1e8e06faa082f7e376c68bc56d847
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/doc/rust.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,9 +1239,9 @@ static BIT2: uint = 1 << 1;
12391239
static BITS: [uint, ..2] = [BIT1, BIT2];
12401240
static STRING: &'static str = "bitstring";
12411241
1242-
struct BitsNStrings<'a> {
1242+
struct BitsNStrings<'self> {
12431243
mybits: [uint, ..2],
1244-
mystring: &'a str
1244+
mystring: &'self str
12451245
}
12461246
12471247
static bits_n_strings: BitsNStrings<'static> = BitsNStrings {
@@ -2281,7 +2281,7 @@ The following are examples of structure expressions:
22812281
~~~~
22822282
# struct Point { x: f64, y: f64 }
22832283
# struct TuplePoint(f64, f64);
2284-
# mod game { pub struct User<'a> { name: &'a str, age: uint, score: uint } }
2284+
# mod game { pub struct User<'self> { name: &'self str, age: uint, score: uint } }
22852285
# struct Cookie; fn some_fn<T>(t: T) {}
22862286
Point {x: 10.0, y: 20.0};
22872287
TuplePoint(10.0, 20.0);
@@ -3055,7 +3055,7 @@ order specified by the tuple type.
30553055
An example of a tuple type and its use:
30563056

30573057
~~~~
3058-
type Pair<'a> = (int,&'a str);
3058+
type Pair<'self> = (int,&'self str);
30593059
let p: Pair<'static> = (10,"hello");
30603060
let (a, b) = p;
30613061
assert!(b != "world");
@@ -3220,7 +3220,7 @@ fn add(x: int, y: int) -> int {
32203220
32213221
let mut x = add(5,7);
32223222
3223-
type Binop<'a> = 'a |int,int| -> int;
3223+
type Binop<'self> = 'self |int,int| -> int;
32243224
let bo: Binop = add;
32253225
x = bo(5,7);
32263226
~~~~

branches/try2/doc/rustdoc.md

Lines changed: 0 additions & 72 deletions
This file was deleted.

branches/try2/doc/tutorial-rustpkg.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ Now you can install and use it! Go anywhere else in your filesystem:
198198

199199
~~~ {.notrust}
200200
$ cd ~/src/foo
201-
$ rustpkg install github.com/YOUR_USERNAME/hello
201+
$ rustpkg install github/YOUR_USERNAME/hello
202202
WARNING: The Rust package manager is experimental and may be unstable
203203
note: Installed package github.com/YOUR_USERNAME/hello-0.1 to /home/yourusername/src/hello/.rust
204204
~~~

0 commit comments

Comments
 (0)