Skip to content

Commit

Permalink
Merge pull request #980 from serde-rs/docrepr
Browse files Browse the repository at this point in the history
Hide repr attribute from documentation
  • Loading branch information
dtolnay authored Feb 5, 2023
2 parents 7bc6c86 + eaa287c commit c42b724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ use serde::ser::{Serialize, SerializeStruct, Serializer};
/// raw_value: Box<RawValue>,
/// }
/// ```
#[repr(transparent)]
#[cfg_attr(not(doc), repr(transparent))]
#[cfg_attr(docsrs, doc(cfg(feature = "raw_value")))]
pub struct RawValue {
json: str,
Expand Down

0 comments on commit c42b724

Please sign in to comment.