Skip to content

Commit

Permalink
docs: Fix docs failing to compile (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
gretchenfrage authored Oct 31, 2024
1 parent 938484d commit 1ef137c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
//! The `mime` crate defines two major types for representing MIMEs in HTTP
//! contexts:
//!
//! - A [`MediaType`](MediaType) is a concrete description of some content,
//! such as `text/plain`.
//! - A [`MediaRange`](MediaRange) is a range of types that an agent is willing
//! to receive, such as `text/*`.
//! - A [`MediaType`] is a concrete description of some content, such as
//! `text/plain`.
//! - A [`MediaRange`] is a range of types that an agent is willing to receive,
//! such as `text/*`.
//!
//! ## Getting a `MediaType`
//!
Expand All @@ -24,8 +24,8 @@
//! // etc
//! ```
//!
//! A [`MediaType`](MediaType) can also be parsed from a string, such as from
//! a `Content-Type` HTTP header:
//! A [`MediaType`] can also be parsed from a string, such as from a
//! `Content-Type` HTTP header:
//!
//! ```
//! match mime::MediaType::parse("text/plain; charset=utf-8") {
Expand All @@ -52,9 +52,9 @@
//!
//! ## Using Media Ranges for matching
//!
//! [`MediaRange`](MediaRange)s are often used by agents to declare a "range"
//! of media types that they can understand. A common place to find these is
//! `Accept` HTTP header, perhaps like this:
//! [`MediaRange`]s are often used by agents to declare a "range" of media
//! types that they can understand. A common place to find these is `Accept`
//! HTTP header, perhaps like this:
//!
//! ```http
//! GET /index.html HTTP/1.1
Expand Down

0 comments on commit 1ef137c

Please sign in to comment.