Skip to content

Commit 1ef137c

Browse files
docs: Fix docs failing to compile (#162)
1 parent 938484d commit 1ef137c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/lib.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
//! The `mime` crate defines two major types for representing MIMEs in HTTP
99
//! contexts:
1010
//!
11-
//! - A [`MediaType`](MediaType) is a concrete description of some content,
12-
//! such as `text/plain`.
13-
//! - A [`MediaRange`](MediaRange) is a range of types that an agent is willing
14-
//! to receive, such as `text/*`.
11+
//! - A [`MediaType`] is a concrete description of some content, such as
12+
//! `text/plain`.
13+
//! - A [`MediaRange`] is a range of types that an agent is willing to receive,
14+
//! such as `text/*`.
1515
//!
1616
//! ## Getting a `MediaType`
1717
//!
@@ -24,8 +24,8 @@
2424
//! // etc
2525
//! ```
2626
//!
27-
//! A [`MediaType`](MediaType) can also be parsed from a string, such as from
28-
//! a `Content-Type` HTTP header:
27+
//! A [`MediaType`] can also be parsed from a string, such as from a
28+
//! `Content-Type` HTTP header:
2929
//!
3030
//! ```
3131
//! match mime::MediaType::parse("text/plain; charset=utf-8") {
@@ -52,9 +52,9 @@
5252
//!
5353
//! ## Using Media Ranges for matching
5454
//!
55-
//! [`MediaRange`](MediaRange)s are often used by agents to declare a "range"
56-
//! of media types that they can understand. A common place to find these is
57-
//! `Accept` HTTP header, perhaps like this:
55+
//! [`MediaRange`]s are often used by agents to declare a "range" of media
56+
//! types that they can understand. A common place to find these is `Accept`
57+
//! HTTP header, perhaps like this:
5858
//!
5959
//! ```http
6060
//! GET /index.html HTTP/1.1

0 commit comments

Comments
 (0)