Skip to content

Commit 620b435

Browse files
committed
doc: Fix some broken links
1 parent 1ba4971 commit 620b435

File tree

5 files changed

+13
-14
lines changed

5 files changed

+13
-14
lines changed

src/doc/rust.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,13 @@ This document does not serve as a tutorial introduction to the
1717
language. Background familiarity with the language is assumed. A separate
1818
[tutorial] document is available to help acquire such background familiarity.
1919

20-
This document also does not serve as a reference to the [standard] or [extra]
21-
libraries included in the language distribution. Those libraries are
20+
This document also does not serve as a reference to the [standard]
21+
library included in the language distribution. Those libraries are
2222
documented separately by extracting documentation attributes from their
2323
source code.
2424

2525
[tutorial]: tutorial.html
2626
[standard]: std/index.html
27-
[extra]: extra/index.html
2827

2928
## Disclaimer
3029

src/libcore/result.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
//!
2525
//! Functions return `Result` whenever errors are expected and
2626
//! recoverable. In the `std` crate `Result` is most prominently used
27-
//! for [I/O](../io/index.html).
27+
//! for [I/O](../../std/io/index.html).
2828
//!
2929
//! A simple function returning `Result` might be
3030
//! defined and used like so:

src/librustdoc/html/item_type.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ impl ItemType {
4444
match *self {
4545
Module => "mod",
4646
Struct => "struct",
47-
Enum => "enum",
47+
Enum => "type",
4848
Function => "fn",
49-
Typedef => "typedef",
49+
Typedef => "type",
5050
Static => "static",
5151
Trait => "trait",
5252
Impl => "impl",

src/libstd/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
//!
1717
//! ## Intrinsic types and operations
1818
//!
19-
//! The [`ptr`](ptr/index.html), [`mem`](mem/index.html),
20-
//! and [`cast`](cast/index.html) modules deal with unsafe pointers,
19+
//! The [`ptr`](../core/ptr/index.html), [`mem`](../core/mem/index.html),
20+
//! and [`cast`](../core/cast/index.html) modules deal with unsafe pointers,
2121
//! memory manipulation, and coercion.
22-
//! [`kinds`](kinds/index.html) defines the special built-in traits,
23-
//! and [`raw`](raw/index.html) the runtime representation of Rust types.
22+
//! [`kinds`](../core/kinds/index.html) defines the special built-in traits,
23+
//! and [`raw`](../core/raw/index.html) the runtime representation of Rust types.
2424
//! These are some of the lowest-level building blocks of Rust
2525
//! abstractions.
2626
//!
@@ -35,9 +35,9 @@
3535
//!
3636
//! The [`option`](option/index.html) and [`result`](result/index.html)
3737
//! modules define optional and error-handling types, `Option` and `Result`.
38-
//! [`iter`](iter/index.html) defines Rust's iterator protocol
38+
//! [`iter`](../core/iter/index.html) defines Rust's iterator protocol
3939
//! along with a wide variety of iterators.
40-
//! [`Cell` and `RefCell`](cell/index.html) are for creating types that
40+
//! [`Cell` and `RefCell`](../core/cell/index.html) are for creating types that
4141
//! manage their own mutability.
4242
//!
4343
//! ## Vectors, slices and strings

src/libstd/result.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@
226226
//! similar and complementary: they are often employed to indicate a
227227
//! lack of a return value; and they are trivially converted between
228228
//! each other, so `Result`s are often handled by first converting to
229-
//! `Option` with the [`ok`](enum.Result.html#method.ok) and
230-
//! [`err`](enum.Result.html#method.ok) methods.
229+
//! `Option` with the [`ok`](../../core/result/enum.Result.html#method.ok) and
230+
//! [`err`](../../core/result/enum.Result.html#method.ok) methods.
231231
//!
232232
//! Whereas `Option` only indicates the lack of a value, `Result` is
233233
//! specifically for error reporting, and carries with it an error

0 commit comments

Comments
 (0)