From 1ccc51ce3b746ee702ef875a90b53b1b06fd2bf8 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 21 May 2014 20:33:00 -0700 Subject: [PATCH] doc: Fix some broken links --- src/librustc/middle/ty.rs | 4 ++-- src/libstd/lib.rs | 2 +- src/libsyntax/attr.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/librustc/middle/ty.rs b/src/librustc/middle/ty.rs index 517be1bde2f..3e2417f71b0 100644 --- a/src/librustc/middle/ty.rs +++ b/src/librustc/middle/ty.rs @@ -220,10 +220,10 @@ pub enum AutoRef { /// Convert from T to &T AutoPtr(Region, ast::Mutability), - /// Convert from ~[]/&[] to &[] (or str) + /// Convert from ~[]/&[] to &[] or str AutoBorrowVec(Region, ast::Mutability), - /// Convert from ~[]/&[] to &&[] (or str) + /// Convert from ~[]/&[] to &&[] or str AutoBorrowVecRef(Region, ast::Mutability), /// Convert from T to *T diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index b0d08c80fbc..8a4b7eb3a63 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -32,7 +32,7 @@ //! //! ## Pervasive types //! -//! The [`option`](option/index.html) and [`result`](result/index.html) +//! The [`option`](option/index.html) and [`result`](../core/result/index.html) //! modules define optional and error-handling types, `Option` and `Result`. //! [`iter`](../core/iter/index.html) defines Rust's iterator protocol //! along with a wide variety of iterators. diff --git a/src/libsyntax/attr.rs b/src/libsyntax/attr.rs index cf5163af717..304b5c19d51 100644 --- a/src/libsyntax/attr.rs +++ b/src/libsyntax/attr.rs @@ -336,7 +336,7 @@ pub fn test_cfg> no_cfgs || some_cfg_matches } -/// Represents the #[deprecated="foo"] (etc) attributes. +/// Represents the #[deprecated="foo"] and friends attributes. pub struct Stability { pub level: StabilityLevel, pub text: Option -- 2.44.0