Skip to content

Commit f65b087

Browse files
authored
Merge pull request #295 from dtolnay/docrepr
Hide repr attribute from documentation
2 parents cf2adb4 + 10370e9 commit f65b087

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ pub use anyhow as format_err;
367367
/// # Ok(())
368368
/// }
369369
/// ```
370-
#[repr(transparent)]
370+
#[cfg_attr(not(doc), repr(transparent))]
371371
pub struct Error {
372372
inner: Own<ErrorImpl>,
373373
}

0 commit comments

Comments
 (0)