doc: Fix some broken links

This commit is contained in:
Alex Crichton 2014-05-09 13:57:37 -07:00
parent 1ba4971ab8
commit 620b4352f2
5 changed files with 13 additions and 14 deletions

View File

@ -17,14 +17,13 @@ This document does not serve as a tutorial introduction to the
language. Background familiarity with the language is assumed. A separate language. Background familiarity with the language is assumed. A separate
[tutorial] document is available to help acquire such background familiarity. [tutorial] document is available to help acquire such background familiarity.
This document also does not serve as a reference to the [standard] or [extra] This document also does not serve as a reference to the [standard]
libraries included in the language distribution. Those libraries are library included in the language distribution. Those libraries are
documented separately by extracting documentation attributes from their documented separately by extracting documentation attributes from their
source code. source code.
[tutorial]: tutorial.html [tutorial]: tutorial.html
[standard]: std/index.html [standard]: std/index.html
[extra]: extra/index.html
## Disclaimer ## Disclaimer

View File

@ -24,7 +24,7 @@
//! //!
//! Functions return `Result` whenever errors are expected and //! Functions return `Result` whenever errors are expected and
//! recoverable. In the `std` crate `Result` is most prominently used //! recoverable. In the `std` crate `Result` is most prominently used
//! for [I/O](../io/index.html). //! for [I/O](../../std/io/index.html).
//! //!
//! A simple function returning `Result` might be //! A simple function returning `Result` might be
//! defined and used like so: //! defined and used like so:

View File

@ -44,9 +44,9 @@ impl ItemType {
match *self { match *self {
Module => "mod", Module => "mod",
Struct => "struct", Struct => "struct",
Enum => "enum", Enum => "type",
Function => "fn", Function => "fn",
Typedef => "typedef", Typedef => "type",
Static => "static", Static => "static",
Trait => "trait", Trait => "trait",
Impl => "impl", Impl => "impl",

View File

@ -16,11 +16,11 @@
//! //!
//! ## Intrinsic types and operations //! ## Intrinsic types and operations
//! //!
//! The [`ptr`](ptr/index.html), [`mem`](mem/index.html), //! The [`ptr`](../core/ptr/index.html), [`mem`](../core/mem/index.html),
//! and [`cast`](cast/index.html) modules deal with unsafe pointers, //! and [`cast`](../core/cast/index.html) modules deal with unsafe pointers,
//! memory manipulation, and coercion. //! memory manipulation, and coercion.
//! [`kinds`](kinds/index.html) defines the special built-in traits, //! [`kinds`](../core/kinds/index.html) defines the special built-in traits,
//! and [`raw`](raw/index.html) the runtime representation of Rust types. //! and [`raw`](../core/raw/index.html) the runtime representation of Rust types.
//! These are some of the lowest-level building blocks of Rust //! These are some of the lowest-level building blocks of Rust
//! abstractions. //! abstractions.
//! //!
@ -35,9 +35,9 @@
//! //!
//! The [`option`](option/index.html) and [`result`](result/index.html) //! The [`option`](option/index.html) and [`result`](result/index.html)
//! modules define optional and error-handling types, `Option` and `Result`. //! modules define optional and error-handling types, `Option` and `Result`.
//! [`iter`](iter/index.html) defines Rust's iterator protocol //! [`iter`](../core/iter/index.html) defines Rust's iterator protocol
//! along with a wide variety of iterators. //! along with a wide variety of iterators.
//! [`Cell` and `RefCell`](cell/index.html) are for creating types that //! [`Cell` and `RefCell`](../core/cell/index.html) are for creating types that
//! manage their own mutability. //! manage their own mutability.
//! //!
//! ## Vectors, slices and strings //! ## Vectors, slices and strings

View File

@ -226,8 +226,8 @@
//! similar and complementary: they are often employed to indicate a //! similar and complementary: they are often employed to indicate a
//! lack of a return value; and they are trivially converted between //! lack of a return value; and they are trivially converted between
//! each other, so `Result`s are often handled by first converting to //! each other, so `Result`s are often handled by first converting to
//! `Option` with the [`ok`](enum.Result.html#method.ok) and //! `Option` with the [`ok`](../../core/result/enum.Result.html#method.ok) and
//! [`err`](enum.Result.html#method.ok) methods. //! [`err`](../../core/result/enum.Result.html#method.ok) methods.
//! //!
//! Whereas `Option` only indicates the lack of a value, `Result` is //! Whereas `Option` only indicates the lack of a value, `Result` is
//! specifically for error reporting, and carries with it an error //! specifically for error reporting, and carries with it an error