Skip to content

Commit

Permalink
Fix doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtoth committed Oct 23, 2023
1 parent 7fdb48f commit dc72870
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ enum Either<T> {

macro_rules! doc_mod {
($ty:ty, $path:ident$(, $generic:ident)?$(; $extra:expr)?) => {
#[doc = concat!(" [`Serialize`](serde::Serialize)/[`Deserialize`](serde::Deserialize) for [`http::"$(, stringify!($extra))?, stringify!($ty), "`]")]
#[doc = concat!(" [`Serialize`](serde::Serialize)/[`Deserialize`](serde::Deserialize) for [`http::"$(, $extra)?, stringify!($ty), "`]")]
///
/// ```
/// use std::{cmp::Ord, collections::*, hash::Hash};
///
#[doc = concat!("use http::", $(stringify!($extra),)? stringify!($ty), ";")]
#[doc = concat!("use http::", $($extra,)? stringify!($ty), ";")]
/// use serde::{Serialize, Deserialize};
///
/// #[derive(Serialize, Deserialize)]
Expand Down

0 comments on commit dc72870

Please sign in to comment.