Skip to content

Commit 7ac2310

Browse files
author
Jorge Aparicio
committed
Merge pull request #119 from mdinger/remove_static
Replace static.rust-lang.org with doc.rust-lang.org
2 parents 704f82a + cb7c6cb commit 7ac2310

File tree

14 files changed

+30
-30
lines changed

14 files changed

+30
-30
lines changed

examples/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This book is a collection of bitesize examples that illustrate various rustic
77
concepts and the Rust distribution libraries.
88

99
Be sure to have rust [installed](http://www.rust-lang.org/install.html) and the
10-
[docs](http://static.rust-lang.org/doc/master/std/index.html) at hand, let's
10+
[docs](http://doc.rust-lang.org/std/) at hand, let's
1111
start!
1212

1313
*Note*: This book will follow the nightly version of Rust until we reach

examples/file/create/input.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
2323
failure conditions)
2424

2525
There is also a more generic
26-
[`open_mode`](http://static.rust-lang.org/doc/master/std/io/fs/struct.File.html#method.open_mode)
26+
[`open_mode`](http://doc.rust-lang.org/std/io/fs/struct.File.html#method.open_mode)
2727
method that can open files in other modes like: read+write, append, etc.

examples/fs/input.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The [`std::io::fs`](http://static.rust-lang.org/doc/master/std/io/fs/index.html)
1+
The [`std::io::fs`](http://doc.rust-lang.org/std/io/fs/)
22
module contains several functions that deal with the filesystem.
33

44
{fs.play}

examples/hof/input.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ give Rust its functional flavor.
44

55
{hof.play}
66

7-
[Option](http://static.rust-lang.org/doc/master/core/option/type.Option.html)
7+
[Option](http://doc.rust-lang.org/core/option/type.Option.html)
88
and
9-
[Iterator](http://static.rust-lang.org/doc/master/core/iter/trait.Iterator.html)
9+
[Iterator](http://doc.rust-lang.org/core/iter/trait.Iterator.html)
1010
implement their fair share of HOFs.

examples/iter/input.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ arrays) and lazy value generators.
44
{iter.play}
55

66
The `Iterator` trait gives access to
7-
[several methods](http://static.rust-lang.org/doc/master/core/iter/trait.Iterator.html).
7+
[several methods](http://doc.rust-lang.org/core/iter/trait.Iterator.html).

examples/ops/input.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ any implementor of the `Add` trait will be able to use the `+` operator.
55

66
{operator.play}
77

8-
Here is a [list](http://static.rust-lang.org/doc/master/core/ops/index.html) of
8+
Here is a [list](http://doc.rust-lang.org/core/ops/) of
99
the traits that overload operators.

examples/path/input.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ instead is stored as a vector of bytes (`Vec<u8>`). Therefore, converting a
1414
{path.play}
1515

1616
Be sure to check at other `Path` methods
17-
([`posix::Path`](http://static.rust-lang.org/doc/master/std/path/posix/struct.Path.html)
18-
or [`windows::Path`](http://static.rust-lang.org/doc/master/std/path/windows/struct.Path.html))
17+
([`posix::Path`](http://doc.rust-lang.org/std/path/posix/struct.Path.html)
18+
or [`windows::Path`](http://doc.rust-lang.org/std/path/windows/struct.Path.html))
1919
and the
20-
[`FileStat`](http://static.rust-lang.org/doc/master/std/io/struct.FileStat.html)
20+
[`FileStat`](http://doc.rust-lang.org/std/io/struct.FileStat.html)
2121
struct.

examples/print/input.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ be checked at compile time.
55
{print.play}
66

77
For more information about formatting, take a look at
8-
[std::fmt](http://static.rust-lang.org/doc/master/std/fmt/index.html).
8+
[std::fmt](http://doc.rust-lang.org/std/fmt/).

examples/result/try/input.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ the `Ok(ok)` branch expands to an `ok` expression.
55

66
{try.play}
77

8-
Be sure to check the [documentation](http://static.rust-lang.org/doc/master/std/result/type.Result.html),
8+
Be sure to check the [documentation](http://doc.rust-lang.org/std/result/type.Result.html),
99
as there are many methods to map/compose `Result`.

examples/staging/unsafe/input.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
As an introduction to this section, to borrow from [the official docs](
2-
http://static.rust-lang.org/doc/0.10/guide-unsafe.html), "one should try to
2+
http://doc.rust-lang.org/0.10/guide-unsafe.html), "one should try to
33
minimize the amount of unsafe code in a code base." With that in mind, let's
44
get started!
55
Unsafe blocks in Rust are used to bypass protections put in place by the

examples/str/input.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ can be used to view into a `String`, just like `&[T]` is a view into `Vec<T>`.
1010
{str.play}
1111

1212
More `str`/`String` methods can be found under the
13-
[std::str](http://static.rust-lang.org/doc/master/std/str/index.html) and
14-
[std::string](http://static.rust-lang.org/doc/master/std/string/index.html)
13+
[std::str](http://doc.rust-lang.org/std/str/) and
14+
[std::string](http://doc.rust-lang.org/std/string/)
1515
modules

examples/trait/deriving/input.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,24 @@ manually implemented if a more complex behavior is required.
66

77
This is a list of the "derivable" traits:
88
* Comparison traits:
9-
[`Eq`](http://static.rust-lang.org/doc/master/std/cmp/trait.Eq.html),
10-
[`PartialEq`](http://static.rust-lang.org/doc/master/std/cmp/trait.PartialEq.html),
11-
[`Ord`](http://static.rust-lang.org/doc/master/std/cmp/trait.Ord.html),
12-
[`PartialOrd`](http://static.rust-lang.org/doc/master/std/cmp/trait.PartialOrd.html)
9+
[`Eq`](http://doc.rust-lang.org/std/cmp/trait.Eq.html),
10+
[`PartialEq`](http://doc.rust-lang.org/std/cmp/trait.PartialEq.html),
11+
[`Ord`](http://doc.rust-lang.org/std/cmp/trait.Ord.html),
12+
[`PartialOrd`](http://doc.rust-lang.org/std/cmp/trait.PartialOrd.html)
1313
* Serialization:
14-
[`Encodable`](http://static.rust-lang.org/doc/master/serialize/trait.Encodable.html),
15-
[`Decodable`](http://static.rust-lang.org/doc/master/serialize/trait.Decodable.html)
16-
* [`Clone`](http://static.rust-lang.org/doc/master/std/clone/trait.Clone.html),
14+
[`Encodable`](http://doc.rust-lang.org/serialize/trait.Encodable.html),
15+
[`Decodable`](http://doc.rust-lang.org/serialize/trait.Decodable.html)
16+
* [`Clone`](http://doc.rust-lang.org/std/clone/trait.Clone.html),
1717
to create `T` from `&T` via a copy.
18-
* [`Hash`](http://static.rust-lang.org/doc/master/std/hash/trait.Hash.html), to
18+
* [`Hash`](http://doc.rust-lang.org/std/hash/trait.Hash.html), to
1919
compute a hash from `&T`.
20-
* [`Rand`](http://static.rust-lang.org/doc/master/rand/trait.Rand.html), to
20+
* [`Rand`](http://doc.rust-lang.org/rand/trait.Rand.html), to
2121
create a random instance of a data type.
22-
* [`Default`](http://static.rust-lang.org/doc/master/std/default/trait.Default.html),
22+
* [`Default`](http://doc.rust-lang.org/std/default/trait.Default.html),
2323
to create an empty instance of a data type.
24-
* [`Zero`](http://static.rust-lang.org/doc/master/std/num/trait.Zero.html), to
24+
* [`Zero`](http://doc.rust-lang.org/std/num/trait.Zero.html), to
2525
create a zero instance of a numeric data type.
26-
* [`FromPrimitive`](http://static.rust-lang.org/doc/master/std/num/trait.FromPrimitive.html),
26+
* [`FromPrimitive`](http://doc.rust-lang.org/std/num/trait.FromPrimitive.html),
2727
to create an instance from a numeric primitive.
28-
* [`Show`](http://static.rust-lang.org/doc/master/std/fmt/trait.Show.html), to
28+
* [`Show`](http://doc.rust-lang.org/std/fmt/trait.Show.html), to
2929
format a value using the `{}` formatter.

examples/type/alias/input.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ exception to this rule are the primitive types: `uint`, `f32`, etc.
55
{alias.play}
66

77
The main use of aliases is to reduce typing, for example the
8-
[`IoResult<T>`](http://static.rust-lang.org/doc/master/std/io/type.IoResult.html)
8+
[`IoResult<T>`](http://doc.rust-lang.org/std/io/type.IoResult.html)
99
type is an alias for the `Result<T, IoError>` type.

examples/vec/input.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ be surpassed, the vector gets reallocated with a bigger capacity.
88
{vec.play}
99

1010
More `Vec` methods can be found under the
11-
[std::vec](http://static.rust-lang.org/doc/master/std/vec/index.html) module
11+
[std::vec](http://doc.rust-lang.org/std/vec/) module

0 commit comments

Comments
 (0)