Skip to content

Commit d6f22a2

Browse files
committed
Make comment into a doc comment and change readme ref
1 parent 968ce25 commit d6f22a2

File tree

1 file changed

+10
-8
lines changed
  • src/librustc/traits/specialize

1 file changed

+10
-8
lines changed

src/librustc/traits/specialize/mod.rs

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

11-
// Logic and data structures related to impl specialization, explained in
12-
// greater detail below.
13-
//
14-
// At the moment, this implementation support only the simple "chain" rule:
15-
// If any two impls overlap, one must be a strict subset of the other.
16-
//
17-
// See traits/README.md for a bit more detail on how specialization
18-
// fits together with the rest of the trait machinery.
11+
//! Logic and data structures related to impl specialization, explained in
12+
//! greater detail below.
13+
//!
14+
//! At the moment, this implementation support only the simple "chain" rule:
15+
//! If any two impls overlap, one must be a strict subset of the other.
16+
//!
17+
//! See the [rustc guide] for a bit more detail on how specialization
18+
//! fits together with the rest of the trait machinery.
19+
//!
20+
//! [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/trait-specialization.html
1921
2022
use super::{SelectionContext, FulfillmentContext};
2123
use super::util::impl_trait_ref_and_oblig;

0 commit comments

Comments
 (0)