Skip to content

Commit 4b7f4cc

Browse files
Remove unwanted auto-linking and update
1 parent 14e2cdc commit 4b7f4cc

File tree

9 files changed

+14
-13
lines changed

9 files changed

+14
-13
lines changed

src/libcore/iter/iterator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ pub trait Iterator {
998998
/// an extra layer of indirection. `flat_map()` will remove this extra layer
999999
/// on its own.
10001000
///
1001-
/// You can think of [`flat_map(f)`][flat_map] as the semantic equivalent
1001+
/// You can think of `flat_map(f)` as the semantic equivalent
10021002
/// of [`map`]ping, and then [`flatten`]ing as in `map(f).flatten()`.
10031003
///
10041004
/// Another way of thinking about `flat_map()`: [`map`]'s closure returns

src/libcore/str/pattern.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ pub struct CharSearcher<'a> {
258258

259259
/// `finger` is the current byte index of the forward search.
260260
/// Imagine that it exists before the byte at its index, i.e.
261-
/// haystack[finger] is the first byte of the slice we must inspect during
261+
/// `haystack[finger]` is the first byte of the slice we must inspect during
262262
/// forward searching
263263
finger: usize,
264264
/// `finger_back` is the current byte index of the reverse search.

src/librustc/ty/sty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1550,7 +1550,7 @@ impl<'a, 'gcx, 'tcx> TyS<'tcx> {
15501550
}
15511551
}
15521552

1553-
/// Returns the type of ty[i]
1553+
/// Returns the type of `ty[i]`.
15541554
pub fn builtin_index(&self) -> Option<Ty<'tcx>> {
15551555
match self.sty {
15561556
TyArray(ty, _) | TySlice(ty) => Some(ty),

src/libstd/ffi/os_str.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ use sys_common::{AsInner, IntoInner, FromInner};
6161
/// # Conversions
6262
///
6363
/// See the [module's toplevel documentation about conversions][conversions] for a discussion on
64-
/// the traits which `OsString` implements for conversions from/to native representations.
64+
/// the traits which `OsString` implements for [conversions] from/to native representations.
6565
///
6666
/// [`OsStr`]: struct.OsStr.html
6767
/// [`&OsStr`]: struct.OsStr.html
@@ -74,6 +74,7 @@ use sys_common::{AsInner, IntoInner, FromInner};
7474
/// [`new`]: #method.new
7575
/// [`push`]: #method.push
7676
/// [`as_os_str`]: #method.as_os_str
77+
/// [conversions]: index.html#conversions
7778
#[derive(Clone)]
7879
#[stable(feature = "rust1", since = "1.0.0")]
7980
pub struct OsString {
@@ -89,7 +90,7 @@ pub struct OsString {
8990
/// references; the latter are owned strings.
9091
///
9192
/// See the [module's toplevel documentation about conversions][conversions] for a discussion on
92-
/// the traits which `OsStr` implements for conversions from/to native representations.
93+
/// the traits which `OsStr` implements for [conversions] from/to native representations.
9394
///
9495
/// [`OsString`]: struct.OsString.html
9596
/// [`&str`]: ../primitive.str.html

src/libstd/macros.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -787,13 +787,13 @@ pub mod builtin {
787787
}
788788
}
789789

790-
/// A macro for defining #[cfg] if-else statements.
790+
/// A macro for defining `#[cfg]` if-else statements.
791791
///
792792
/// This is similar to the `if/elif` C preprocessor macro by allowing definition
793793
/// of a cascade of `#[cfg]` cases, emitting the implementation which matches
794794
/// first.
795795
///
796-
/// This allows you to conveniently provide a long list #[cfg]'d blocks of code
796+
/// This allows you to conveniently provide a long list `#[cfg]`'d blocks of code
797797
/// without having to rewrite each clause multiple times.
798798
macro_rules! cfg_if {
799799
($(

src/libsyntax_pos/hygiene.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Machinery for hygienic macros, inspired by the MTWT[1] paper.
11+
//! Machinery for hygienic macros, inspired by the `MTWT[1]` paper.
1212
//!
13-
//! [1] Matthew Flatt, Ryan Culpepper, David Darais, and Robert Bruce Findler. 2012.
13+
//! `[1]` Matthew Flatt, Ryan Culpepper, David Darais, and Robert Bruce Findler. 2012.
1414
//! *Macros that work together: Compile-time bindings, partial expansion,
1515
//! and definition contexts*. J. Funct. Program. 22, 2 (March 2012), 181-216.
1616
//! DOI=10.1017/S0956796812000093 <http://dx.doi.org/10.1017/S0956796812000093>

src/libunwind/macros.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
/// A macro for defining #[cfg] if-else statements.
11+
/// A macro for defining `#[cfg]` if-else statements.
1212
///
1313
/// This is similar to the `if/elif` C preprocessor macro by allowing definition
1414
/// of a cascade of `#[cfg]` cases, emitting the implementation which matches
1515
/// first.
1616
///
17-
/// This allows you to conveniently provide a long list #[cfg]'d blocks of code
17+
/// This allows you to conveniently provide a long list `#[cfg]`'d blocks of code
1818
/// without having to rewrite each clause multiple times.
1919
macro_rules! cfg_if {
2020
($(

src/test/run-pass/issue-16819.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//`#[cfg]` on struct field permits empty unusable struct
11+
// `#[cfg]` on struct field permits empty unusable struct
1212

1313
struct S {
1414
#[cfg(untrue)]

src/test/rustdoc-ui/intra-links-warning.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// must-compile-successfully
11+
// compile-pass
1212

1313
//! Test with [Foo::baz], [Bar::foo], [Uniooon::X]
1414

0 commit comments

Comments
 (0)